Boolean expression

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
fmou
Participant
Posts: 124
Joined: Sat May 28, 2011 9:48 pm

Boolean expression

Post by fmou »

Hi,

Another noob question,

In trasnformer, I have such derived variable defined,

Code: Select all

IF IsNotNull(the_field) THEN 'Y' ELSE 'N' -- IsFound
Then the variable IsFound is used as an output constrain, e.g,

Code: Select all

if IsFound = 'Y'
Coming from C/C++ background, I'm wondering if I can just use IsNotNull's Return as-is? then in output constrain, just use "IsFound", without further comparison?

thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yes! Absolutely no need for the if-then-else derivation, just let the expression naturally resolve to a boolean. :D
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply