isSymbolExpression
[ Function ]
public static isSymbolExpression(expression: string): boolean;
Checks whether an expression is a valid symbol expression.
Parameter
Name | Type | Description |
---|---|---|
expression | Symbol expression for checking |
Return value
Type | Description |
---|---|
Result as to whether a valid symbol expression was checked |
Available from 1.8 |
Sample - JavaScript
if(TcHmi.Symbol.isSymbolExpression('%i%myInternalSym%/i%')){}; // true
if(TcHmi.Symbol.isSymbolExpression('%s%PLC1.MAIN.dValue%/s%')){}; // true
if(TcHmi.Symbol.isSymbolExpression('%s%PLC1.MAIN.dValue%/f%')){}; // false