Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script to add conditional statements in calculated field
#1
How to write conditional statements in calculated field?

Add the script in calculated script area 

‘sdk.calculation.getDivision(Marks)’

Add the below script in connection script area. 

sdk.calculation = sdk.calculation || {}; 
sdk.calculation.getDivision = function(marks){ 
if(marks>=50) 
return 'Pass'; 
else if(marks<50) 
return 'Fail'; 
}; 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)