HomeForum
Welcome, Guest

Iif logic syntax
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Iif logic syntax

Iif logic syntax 7 years, 3 months ago #29

  • spruitt
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
  • Karma: 0
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.

RE: Iif logic syntax 7 years, 3 months ago #30

  • mike8888
  • OFFLINE
  • Expert Boarder
  • Posts: 131
  • Karma: 0
Try

Iif('[F40]'=='Y',1,0)

RE: Iif logic syntax 7 years, 3 months ago #31

  • spruitt
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
  • Karma: 0
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"?

RE: Iif logic syntax 7 years, 2 months ago #32

  • mike8888
  • OFFLINE
  • Expert Boarder
  • Posts: 131
  • Karma: 0
Currently there is no case statement supported, use iif instead.
There was a spelling mistake in documentation which was corrected a week ago
  • Page:
  • 1
Time to create page: 0.17 seconds

Testimonials

"AETL is a perfect fit for our requirements as it offers process automation and integration in one single package. This initiative has helped us to improve our business process efficiency and timeliness."

Sue K,
Online Logistics

User Login

You only need to log in or register to use our support forum



Our customers

BP

BBC

HSBC


Databases we work with

Go to top