You are viewing limited content. For full access, please sign in.

Question

Question

Conditional Expressions in Forms

asked on September 9, 2015

In the Forms help documentation here, it talks about how to use conditional expressions in Forms. One of the examples it shows is to change the statement to the following "matches(/dataset/attribute_name, "value")", but it does not give an explanation of what that does? Does it allow you to include multiple values it has to match on or how is it different than "/dataset/single_line= "value")"? Also, are there other options other than "matches" we can use?

 

1 0

Answer

APPROVED ANSWER
replied on September 9, 2015

Here is a link to an XPath tutorial and a list of functions you can use. To answer the question about what's different between using matches() and the equal sign (=), the equal sign is case sensitive whereas matches() is case insensitive.

If you're looking to match against multiple values, you can use "or" in between the conditions.

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.