Home Page : Glossary : "I" : iif
iif(condition,true-result,false-result)The expression returns the "true-result" if the "condition" evaluates to true, if the condition evaluates to "false" then the "false-result" is returned. For example:
select hour, iif(hour>=12,"pm","am")
from logwill return a result set with the hour and an "am" or "pm" indicator (assuming that table log contains a field "hour" containing the hour of some event).
Can you add to this definition? If so please Report an Observation. Do you know of a relevant link to add under this definition? If so please Add a Link.
© Copyright 2004-2008, A B Cryer, All Rights Reserved.