I have a global MACRO defined in .cmm script and I want to get it's value by using the string name.
I tried to reference it with double "&" symbol, but after this line I get an "operand expected" error:
&error_name = STRING.LoWeR("&error_name")+"_low"
&modulus=&&error_name
VAR.IF (FS_ErrorIdStatus[&modulus] != 0)
(
&error_name = "ERR_MON_"+STRing.UPpeR("&error_name")+"_VOLTAGE"
GOSUB TC_DEBUG_MESSAGE " -- FAILED: " + &error_name + " was reported"
RETURN FALSE()
)
Although in the debug window it's value is shown. (https://i.stack.imgur.com/6wspz.png)