Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

StrToBool

  • Last UpdatedJul 18, 2023
  • 1 minute read

Converts a string value to a Boolean value.

Syntax

StrToBool(sVal)

sVal:

Boolean value as a string. Allowable values are: TRUE, FALSE or any numeric value.

Return Value

Boolean value of 0 or 1.

Example

StrToBool("TRUE"); // returns 1 which is TRUE

StrToBool("false"); // returns 0 which is FALSE

StrToBool("5"); // returns 1

StrToBool("Orange"); // returns 0

StrToBool("0"); // returns 0

See Also

String Functions

Using the Caret Escape Sequence Character

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in