The NUM != NUM operator returns a value of true if the two number values you specify are not equal.
You can use the != operator to form conditions for IF statements. This can be useful in determining template logic.
Operator | Model | After you drag and drop the model into the script tab: | Expression returns: |
NUM != NUM | ⟦NUM⟧ != ⟦NUM⟧ | Replace both ⟦NUM⟧ placeholders with a numeric value you want to compare the other to. | A true/false value. |
The following script does something if the number variable numvarNU is not equal to 0.
IF numvarNU != 0
//do something
END IF
After you download the example template, you can import the template to any workspace to see this example code in action.