Jump to content

Evaluate boolean expression stored in a string

Recommended Posts

Hello guys!


Is it possible to parse and evaluate a boolean expression stored in a string with standard LV VIs? I can't find anything..


Expression like this one: 1==2 && (2!=5 || 2 > 5)


I'm building a configuration xml-file with if-attributes for conditions:


<item name="xyz" if="{namespace:variable} == 3" />

The first step is replacing the variables within {} with actual values. This is the easy part. The hard part is to evaluate the results...

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.