eval syntax checker has problems with expressions including rel. items and ending with an int value
onkelandy opened this issue · 1 comments
onkelandy commented
All these work:
1 if sh.test.triggertest3.property.last_update_age > 10 else 2
1 if sh..self.property.last_update_age > 10 else 2.0
1 if sh..self.property.last_update_age > 10 else "2"
However, this does not work:
1 if sh..self.property.last_update_age > 10 else 2
It actually gets expanded like this - so there is no space after the else statement anymore, for whatever reason..
Problem evaluating 1 if sh.test.triggertest3.property.last_update_age > 10 else2: unexpected EOF while parsing (<string>, line 1)
Maybe there are other scenarios with issues, however this happened most often.