Unipark
Navigation
  • Forum
  • Registration
  • Login
Search

Forum › Forums › Unipark › Problem bei Filterbedingung

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • 30. June 2022 at 19:47 #1347
    Birgit Putz
    Guest

    Hallo Jannik,

     

    verstehe ich das richtig:

     

    v_7 = 4 AND v_6 = 2 AND v_8 = 2 AND v_9 = 1

    ist eine richtige Kombination,

    ebenfalls

    v_7 = 3 AND v_6 = 2 AND v_8 = 1 AND v_9 = 2

    sowie

    v_7 = 2 AND v_6 = 2 AND v_8 = 1 AND v_9 = 3

    und

    v_7 = 1 AND v_6 = 1 AND v_8 = 1 AND v_9 = 4

     

    das sind also alles richtige Kombinationen?

     

    Und wenn gar keine richtige Kombination gewählt wurde, dann soll eine bestimmte Seite per Filter angezeigt werden?

    Dann musst du diese Kombinationen mit UND verbinden:

    hier nur aus Übersichtsgründen auf mehrere Zeilen verteilt:

     

    if(

    NOT (v_7 = 4 AND v_6 = 2 AND v_8 = 2 AND v_9 = 1)

    AND

    NOT (v_7 = 3 AND v_6 = 2 AND v_8 = 1 AND v_9 = 2)

    AND

    NOT (v_7 = 2 AND v_6 = 2 AND v_8 = 1 AND v_9 = 3)

    AND

    NOT (v_7 = 1 AND v_6 = 1 AND v_8 = 1 AND v_9 = 4)

    )

     

    Ansonsten reicht ja eine einzige NOT-Bedingung, um die Filterbedingung wahr werden zu lassen.

     

    Viele Grüße

    Birgit

    30. June 2022 at 19:47 #1348
    Jannik Kroh
    Guest

    Vielen Dank, so hat es geklappt!

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Lost your password?

UNIPARK

QUICK LINKS

  • Registration
  • Login
  • Search
© Copyright 2025 UNIPARK