- Posts: 12
- Thank you received: 0
Iif logic syntax
18 years 7 months ago #29
by spruitt
Iif logic syntax was created by spruitt
I'm mapping a source field that has either a "Y" or "N" value to a target field that has either a 0 or 1. I made the field Calculated and put the following in, but it doesn't seem to work I'm always getting 0.
Iif([F40]=="Y";1;0)
Can you please clarify what I'm doing wrong. Thanks.
Iif([F40]=="Y";1;0)
Can you please clarify what I'm doing wrong. Thanks.
Please Log in or Create an account to join the conversation.
18 years 7 months ago #30
by mike8888
Replied by mike8888 on topic RE: Iif logic syntax
Try
Iif('[F40]'=='Y',1,0)
Iif('[F40]'=='Y',1,0)
Please Log in or Create an account to join the conversation.
18 years 7 months ago #31
by spruitt
Replied by spruitt on topic RE: Iif logic syntax
Thanks, that worked. The example in the Calculation editor and on page 35 of the documentation shows semi-colons.
Is there a way to do any type of a "case" statement, for if you multiple conditions? Or do you just have to keep nexting the "Iif"?
Is there a way to do any type of a "case" statement, for if you multiple conditions? Or do you just have to keep nexting the "Iif"?
Please Log in or Create an account to join the conversation.
18 years 6 months ago #32
by mike8888
Replied by mike8888 on topic RE: Iif logic syntax
Currently there is no case statement supported, use iif instead.
There was a spelling mistake in documentation which was corrected a week ago
There was a spelling mistake in documentation which was corrected a week ago
Please Log in or Create an account to join the conversation.