isSymbolExpression

[ Function ]

public static isSymbolExpression(expression: string): boolean;

Checks whether an expression is a valid symbol expression.

Parameter

Name

Type

Description

expression

string

Symbol expression for checking

Return value

Type

Description

boolean

Result as to whether a valid symbol expression was checked

isSymbolExpression 1:

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