-
Notifications
You must be signed in to change notification settings - Fork 36
IIF Function
object IIF(condition:bool, trueReturn:object, falseReturn:object)
Returns the second or third parameter based on the evaluation of the condition specified as the first parameter.
If the first input parameter (condition) is null, it is treated as false. All the three parameters of the IIF function can be any other WAL functions returning the data type mentioned in the function signature. Please note the IIF function evaluates the values for the second as well as the third parameter even when it only returns the value of either the second or the third parameter based on the evaluation of the condition specified as the first parameter.
1.0.0.0 and later
IIF(Eq([//Target/EmployeeType],"Contractor"),"OU=Vendors",[//WorkflowData/OrgOU])
IIF(Not(Eq(1,2)),true,false)
IIF(Not(Eq(1,2)),"1 != 2","1 == 2")
- MIMWAL Site - http://aka.ms/MIMWAL
- MIMWAL Releases - http://aka.ms/MIMWAL/Releases
- MIMWAL Documentation Wiki - http://aka.ms/MIMWAL/Wiki
- MIMWAL FAQ - http://aka.ms/mimwal/faq
- MIMWAL GitHub Code Repo - http://aka.ms/MIMWAL/Repo
- MIMWAL TechNet Q&A Forum (now read-only) - http://aka.ms/MIMWAL/Forum