List of Logical Statements
The following are logical statements that can be used within the expressions of iif parameters:
.EQ. → Equal to (==)
.NE. → Not equal to (!=)
.LT. → Less than (<)
.LE. → Less than or equal to (<=)
.GT. → Greater than (>)
.GE. → Greater than or equal to (>=)
.AND. → AND (&&)
.OR. → OR (||)
.NOT. → NOT (!)
Example:
| |||||
In the example provided, if the value of "a" is greater than "b", then the result of "Test1" will be "c". If not, the result will be "d". In "Test2", a nested "iif" function is utilized to handle more complex tests. | |||||
To view this example in the library, see (https://openbrim.org/platform/?application=inc&author=ParamML_Examples_OpenBrIM+Platform&folder=Logical+Statement+and+Test&obj=objidiks1ubk6utmhxl8k59dx4f) |
Example:
| |||||
The dynamic effect coefficient is determined using a formula. If the calculated value is greater than or equal to 1.3, it is set to 1.3. If it is less, the calculated value is used. This is presented as follows: | |||||
| |||||
.AND. In this expression, both the conditions on the left and right must be satisfied in order for the positive value to be accepted. The value at which C1 will occur will be 9, as the condition A<B is not provided, but B>C is provided. However, if both conditions are not met simultaneously, C1 will be assigned a negative value. In this case, C1=9. | |||||
| |||||
.OR. A positive value is accepted if one of the two conditions is met in the statement. The value at which C1 will occur will be 12 because A<B equality is not provided, B>C is provided. If only one of these two conditions is true, the result leads to a positive value. C1 takes the positive value and becomes C1=C. So C=12. | |||||
| |||||
.EQ. The NULL expression searches for the absence of an object. C1=E. So C1=50 . | |||||
To view this example in the library, see (https://openbrim.org/platform/?application=inc&author=ParamML_Examples_OpenBrIM+Platform&folder=Logical+Statement+and+Test&obj=objid1gymiqj4il4qsujbia5hbf) |