Hello ForeUI,
I’m trying to use conditional branching where I want to check whether a checkbox is selected or not: {CheckBox_1.selected} == true
However, this keeps on giving an expression error, but it works in version 3.90 SP 1 and does not in 4.00 beta. A bug perhaps?
Best regards,
Gerwin
2 answers
Hi Gerwin,
This is not a bug, it is just because in V4.0 we defined two parsing modes for expression, and the conditional branching is set to “EVAL” parsing mode, which requires all strings need to get quoted with double quote marks. I am about to write a blog post to introduce all these.
In the “EVAL” parsing mode, your property name in the {} also needs to be quoted with double quote marks. Like this:
If you load a plot file that created with V3.xx, and it has conditional branching like that, you will see it get modified by ForeUI and the name of property gets quoted automatically.
If the text field is in “TEXT” mode, you won’t need the double quote marks, because ForeUI assumes all your input are just text (no function call, no calculation etc.). In your case, conditional branching doesn’t support “TEXT” parsing mode, so you need the quote marks.
I will soon introduce how to use these parsing modes in a blog post.
After posting my reply. I checked again and I realized that, even in “EVAL” parsing mode, when inserting property by clicking the “…” button, ForeUI doesn’t add quote marks to the property name. So that is a bug, thanks for reminding us 🙂
We will get it fixed in next version.
-
Hello ViVi,Thanks for the swift reply, adding the " " gets rid of the expression error.Best regards,Gerwin