Odd bug and workaround for the variable "if"

The Amazing Baz

2012-09-05 16:49:05

When entering rules, the variable "if" generates a parse error. This is because it is mistaken for part of a conditional expression.
if variable typed into rules.tiff
if variable typed into rules.tiff (17.03 KiB) Viewed 2762 times
However, the following circumstances cause the variable "if" to work correctly:
- rules that have the conditional if directly before the variable if. An example would be "if if==10, pp=1". This only works when the two ifs are next to each other.
if variable in conditional situation.tiff
if variable in conditional situation.tiff (13.86 KiB) Viewed 2762 times
- when it is selected from a drop-down menu
if variable selected from menu [open menu].tiff
if variable selected from menu [open menu].tiff (36.06 KiB) Viewed 2762 times

florian

2012-09-05 22:21:18

thanks for the report (though I cannot see the images). And yes, this is sort of a known issue, sorry for that!
The best way is to avoid "if" as variable and hope for the next generation MT with variable variable names...

Florian