include sample_top.html
Caravan Business Server>Examples>Date & Time Variables

Usage of IF-Elseif-End if Statement
Number1 :
Number2 :
Number3 :
var sql sql(a)=form(txtnumber1) sql(b)=form(txtnumber2) sql(c)=form(txtnumber3) if sql(a)>sql(b) if sql(a)>sql(c) "Number1 is the biggest of three" endif elseif sql(b)>sql(c) "Number2 is the biggest of three" else "Number3 is the biggest of three" endif
  include sample_bottom.html