Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
zied_ahmed1
Specialist
Specialist

condition in script

I have this table :

Table:

Load [Sales Forcast],

date

from table

I want to add a field named Sales_forcast_valid with this condition :

if (today()< date) Sales_forcast_valid  = [Sales Forcast]


else

Sales_forcast_valid  =0



Thanks for help


1 Reply
m_woolf
Master II
Master II

if(today()<date, [Sales Forcast],0) as Sales_forcast_valid,