18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix: Built-in Scripting Language<br />

Logical functions<br />

These functions are used to perform logical operations (e.g., if/then, true/false) on tags and expressions.<br />

False<br />

Determines whether the specified tag or expression is logically false.<br />

Function Group Execution Windows Embedded Thin Client<br />

False Logical Synchronous Supported Supported Supported<br />

Syntax<br />

False(TagOrExpression)<br />

TagOrExpression<br />

Tag or expression to be used in the function.<br />

Returned value<br />

0 If the tag or expression is not logically false.<br />

1 If the tag or expression is logically false.<br />

Tip: You may find this function useful if you need to return an actual value of 0 when the<br />

expression returns some value other than 0.<br />

Examples<br />

If<br />

Tag Name<br />

Expression<br />

Tag False( 1 ) // Returned value = 0<br />

Tag False( 5 < 2 ) // Returned value = 1<br />

Determines whether the contents of numExpression are logically true, then returns the value of numThen or<br />

optNumElse accordingly.<br />

Function Group Execution Windows Embedded Thin Client<br />

If Logical Synchronous Supported Supported Supported<br />

Syntax<br />

If( numExpression, numThen, optNumElse )<br />

numExpression<br />

Tag or expression used as the condition in the function.<br />

numThen<br />

Tag or expression used if the condition is logically true.<br />

optNumElse<br />

Optional tag or expression used if the condition is logically false.<br />

Page 550<br />

<strong>InduSoft</strong> Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!