R
Richard
What is best way to create a variable that depends on five different fields
and is defined by multiple rules. This is similar to CASE or ELSE IF
statements in Excel.
Something like:
If a>2, b="Car", c=10, d="Fix" then x = "Fancy"
else if a<2, b="van", d="Brake" then x = "Plain"
else if a>5, b="truck" then x = "Big"
else x = "Unknown"
End if
I've looked at IIF function, but have too many dependencies and rules to
keep format of statement tenable.
and is defined by multiple rules. This is similar to CASE or ELSE IF
statements in Excel.
Something like:
If a>2, b="Car", c=10, d="Fix" then x = "Fancy"
else if a<2, b="van", d="Brake" then x = "Plain"
else if a>5, b="truck" then x = "Big"
else x = "Unknown"
End if
I've looked at IIF function, but have too many dependencies and rules to
keep format of statement tenable.