Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen


as of release 3.27prior to release 3.27


Function

This object compares two values, which may be constants or variables, and causes execution of the program to continue at the corresponding object output.

Example: You query if the value of the variable $testcall is 0 (true, thus a test call) or 1 (false, thus no test call) and continue the routing in each case differently. The function is useful for testing an application.

Parameters

Object Name

The name of this object instance

Expression 1

The right hand side of the comparison. Here you can also use variables.(Please note that variables must start with the $ sign, e.g. $caller)

Operator

The operator to use, see the following table

Expression 2

The right hand side of the comparison. Here you can also use variables.

Operators

num ==

The comparison is true if value 1 is numerically equal to value 2.
Any value, which is not a number, is treated as 0.

num <>

The comparison is true if value 1 is numerically unequal to value 2.
Any value, which is not a number, is treated as 0.

num >

The comparison is true if value 1 is numerically greater than value 2.
Any value, which is not a number, is treated as 0.

num >=

The comparison is true if value 1 is numerically greater than or equal to value 2.
Any value, which is not a number, is treated as 0.

num <

The comparison is true if value 1 is numerically less than or equal to value 2.
Any value, which is not a number, is treated as 0.

num <=

The comparison is true if value 1 is numerically less than or equal to value 2.
Any value, which is not a number, is treated as 0.

str ==

The comparison is true if value 1 is equal to value 2 as a string of characters.

str <>

The comparison is true if value 1 is unequal to value 2 as a string of characters.

str >

The comparison is true if value 1 is greater to value 2 as a string of characters.
The comparison is performed using the ISO-8859-1 (Latin-1) character set.

str >=

The comparison is true if value 1 is less than value 2 as a string of characters.
The comparison is performed using the ISO-8859-1 (Latin-1) character set.

str <

The comparison is true if value 1 is less than value 2 as a string of characters.
The comparison is performed using the ISO-8859-1 (Latin-1) character set.

str <=

The comparison is true if value 1 is less than or equal to value 2 as a string of
characters. The comparison is performed using the ISO-8859-1 (Latin-1) character set.

Examples

Expression 1

Operator

Expression 2

Result

123

num ==

123

true

123

num ==

Hello

false

123

num >

Hello

true

0

num <>

Hello

false

123

str ==

Hello

false

123

str >=

Hello

true

Outputs

Output

Used when ...

True

wenn the comparison is true.

False

wenn the comparison is false.


Sv translation
languagede


Image Removed

seit Version 3.27

vor Version 3.27

Image Added

Image Added



Funktion

Vergleicht zwei Werte, die Variablen oder Konstanten entnommen werden und nutzt je nach Ergebnis einen entsprechenden Objektausgang.

Beispiel: Sie fragen ab, ob der Wert der Variable $testcall 0 (wahr, also Testanruf) oder 1 (falsch, kein Testanruf) ist und führen das Routing jeweils anders weiter. Diese Funktion ist nützlich beim Testen einer Applikation.

Parameter

Objektname

Name dieser Objektinstanz

Ausdruck 1

Linke Seite der Gleichung. Hier können Sie Variablen verwenden. (Bitte beachten sie, dass Variablen mit dem $-Zeichen beginnen müssen, z.B. $caller)

Operator

Operator, siehe folgende Tabelle

Ausdruck 2

Linke Seite der Gleichung. Hier können Sie Variablen verwenden.

Operatoren

num ==

Der Vergleich ist wahr, wenn Ausdruck 1 numerisch gleich Ausdruck 2 ist. 
Ein Ausdruck, der nicht einer Zahl entspricht, wird wie 0 behandelt.

num <>

Der Vergleich ist wahr, wenn Ausdruck 1 numerisch ungleich Ausdruck 2 ist.
Ein Ausdruck, der nicht einer Zahl entspricht, wird wie 0 behandelt.

num >

Der Vergleich ist wahr, wenn Ausdruck 1 numerisch größer als Ausdruck 2 ist. 
Ein Ausdruck, der nicht einer Zahl entspricht, wird wie 0 behandelt.

num >=

Der Vergleich ist wahr, wenn Ausdruck 1 numerisch größer oder gleich Ausdruck 2 ist.
Ein Ausdruck, der nicht einer Zahl entspricht, wird wie 0 behandelt.

num <

Der Vergleich ist wahr, wenn Ausdruck 1 numerisch kleiner oder gleich Ausdruck 2 ist.
Ein Ausdruck, der nicht einer Zahl entspricht, wird wie 0 behandelt.

num <=

Der Vergleich ist wahr, wenn Ausdruck 1 numerisch kleiner oder gleich Ausdruck 2 ist.
Ein Ausdruck, der nicht einer Zahl entspricht, wird wie 0 behandelt.

str ==

Der Vergleich ist wahr, wenn Ausdruck 1 als Zeichenkette gleich Ausdruck 2 ist.

str <>

Der Vergleich ist wahr, wenn Ausdruck 1 als Zeichenkette ungleich Ausdruck 2 ist.

str >

Der Vergleich ist wahr, wenn Ausdruck 1 als Zeichenkette größer als Ausdruck 2 ist.
Der Vergleich findet anhand des Zeichensatzes ISO-8859-1 (Latin-1) statt.

str >=

Der Vergleich ist wahr, wenn Ausdruck 1 als Zeichenkette größer oder gleich Ausdruck 2 ist.
Der Vergleich findet anhand des Zeichensatzes ISO-8859-1 (Latin-1) statt.

str <

Der Vergleich ist wahr, wenn Ausdruck 1 als Zeichenkette größer oder gleich Ausdruck 2 ist.
Der Vergleich findet anhand des Zeichensatzes ISO-8859-1 (Latin-1) statt.

str <=

Der Vergleich ist wahr, wenn Ausdruck 1 als Zeichenkette kleiner oder gleich Ausdruck 2 ist.
Der Vergleich findet anhand des Zeichensatzes ISO-8859-1 (Latin-1) statt.

Beispiele

Ausdruck 1

Operator

Ausdruck 2

Ergebnis

123

num ==

123

wahr

123

num ==

Hallo

falsch

123

num >

Hallo

wahr

0

num <>

Hallo

falsch

123

str ==

Hallo

falsch

123

str >=

Hallo

wahr

Ausgänge

Ausgang

Wird benutzt ...

Wahr

wenn der Vergleich wahr ist.

Falsch

wenn der Vergleich falsch ist.


...