It doesn't directly, but you can accomplish the same thing with the last
condition always resolving to true.
=Switch(Fields!myColor.Value = "Red", "the spot is red",
Fields!myColor.Value = "Blue", "the spot is blue", 1 = 1, "some other
color")
I found the following in the help:
Evaluates a list of expressions, and returns the value associated with the
first condition that returns TRUE. Switch can have one or more
condition/value pairs.
Syntax
Switch(condition1, value1, .)
condition1
Indicates the condition to test.
value1
Specifies the value or expression that the item should be replaced
with, if the condition is True.
Example
Formula Result
SWITCH(Customer Type = "I", "Individual", Customer Type = "S", "Shop
a.. The following expression also returns one of three values based on the
value of PctComplete, but uses the Switch function instead, which returns
the value associated with the first expression in a series that evaluates to
true:
Copy Code
=Switch(Fields!PctComplete.Value >= .8, "Green", Fields!PctComplete.Value >=
.5, "Amber", Fields!PctComplete.Value < .5, "Red")Thanks,
Steve MunLeeuw
Brian - 09 Jul 2008 01:31 GMT
Thats great thanks!
I'm struggling wit RS help
> It doesn't directly, but you can accomplish the same thing with the last
> condition always resolving to true.
[quoted text clipped - 31 lines]
> ..5, "Amber", Fields!PctComplete.Value < .5, "Red")Thanks,
> Steve MunLeeuw