If condition on Input: Calc

Questions related to using nuBuilder Forte.

If condition on Input: Calc

Postby sandeepgumudelli » Thu Feb 01, 2018 7:37 pm

Hi,

Is it possible to apply if condition on input: Calc field.

example: if (a=0) then b*c else a*c.

Regards,
Sandeep
sandeepgumudelli
 
Posts: 32
Joined: Fri Jan 26, 2018 12:21 am

Re: If condition on Input: Calc

Postby admin » Thu Feb 01, 2018 8:07 pm

Sandeep,

No mate it isn't.

Steven.
admin
Site Admin
 
Posts: 3154
Joined: Mon Jun 15, 2009 9:53 am

Re: If condition on Input: Calc

Postby sandeepgumudelli » Thu Feb 01, 2018 8:11 pm

Found it...
Here it is:

( a == 0 ) ? (b * c) : (a * c)


Regards,
Sandeep
sandeepgumudelli
 
Posts: 32
Joined: Fri Jan 26, 2018 12:21 am

Re: If condition on Input: Calc

Postby toms » Thu Feb 01, 2018 8:18 pm

Cool solution 8-)
toms
 

Re: If condition on Input: Calc

Postby admin » Fri Feb 02, 2018 3:25 am

Sandeep,

My apologies.

I completely forgot that Calc had ? and :

Well done!

Steven
admin
Site Admin
 
Posts: 3154
Joined: Mon Jun 15, 2009 9:53 am


Return to General