09-14-2011 05:37 AM
Hi to all frontend developers,
it need to know if its possible to add more than one DVD condition do a visible condition.
For example: "[$a]=true and [$b]= false"
If its possible, what is the correct Syntax?
Regards from Germany
Solved! Go to Solution.
09-14-2011 10:49 AM - edited 09-15-2011 11:32 AM
For an AND condition:
[a]=true & [b]=true
For an OR condition:
[field1]="name" | [field1]="nom"
If you combine AND and OR statements, the order of operations will group them--you cannot use parens.
[a]=true & [b]=true & [field1]="name" | [field1]="nom"
would evaluate as:
[a]=true & [b]=true & [field1]="name" OR [field1]="nom"
The sample format in SM called dep.g has some examples of DVD controls and expressions
03-24-2012 11:52 PM
I have tested the below and it works however when I change the equal "=" to not equal to"<>" it does not work for multiple conidtions (however for a single condition it works) . Below is an example of what does not work:
[field1]<>"name" | [field1]<>"nom"
appreciate your feedback
03-25-2012 11:36 PM
Maybe I am mistaken now but I think that you can achieve the same with [field1]<>"name" & [field1]<>"nom"
like & instead of | (or)
03-26-2012 01:05 PM
AND: will only return true if all inputs are true
OR: will return true if at least one input is true
I am not sure why the <> expressions aren't working for you, but I have been able to get it to work.