Page 1 of 1
switch
Posted: Wed Oct 24, 2012 6:24 pm
by mhf
Hi
Please top correct the code.
I'm Thank you your example
{switch
(RatingPost.UserName == "fakhravary","Test Example 1",
RatingPost.UserName == "sareh_tt","Test Example 2")}
Re: switch
Posted: Thu Oct 25, 2012 5:55 am
by HighAley
Hello.
You should write Switch().
It's case sensitive.
Thank you.
Re: switch
Posted: Fri Oct 26, 2012 6:55 pm
by mhf
I'm not familiar with the structure
Thanks, I'll take a full sample
{
Switch("software")
case "1":
return "aa";
case "2":
return "bb";
case "3":
return "cc";
}
Re: switch
Posted: Mon Oct 29, 2012 7:01 am
by HighAley
Hello.
You could fine a description if the Switch function in the Text Editor.
object Switch (condition1, value1, condition2, value2, ...)
The Switch evaluates the expressions from left to right, and returns the value associated with the first expression to evaluate to True. If all of the expressions are False, then Switch returns null.
Parameters
Condition1, condition2, and so on are Boolean expressions. value1, value2, and so on are the possible values that may be returned.
Return Value
One of the values in the value list value1, value2, and so on.

- SwitchDescription.png (64.98 KiB) Viewed 2207 times
Thank you.