Home > @uniformdev/canvas > hasReferencedVariables

hasReferencedVariables() function

Checks if there are Uniform variable reference expressions in a value. Returns the number of variable references found.

This differs from parseVariableExpression in that it only returns the count of variables found, not all tokens.

Signature:

Parameters

ParameterTypeDescription
valuestring | undefined

Returns:

number