If expressions


how create expression if want return value if value > or < set value? example:

if ( subtotal < 25.00 )
shippingcharge = 6.00
elseif ( subtotal > 25.01 or < 50.00)
shippingcharge = 8.00
elseif ( subtotal > 50.01 or < 75.00)
shippingcharge = 10.00
endif

i know not correct syntax illustrates i'm trying accomplish.

the syntax listed in "scripting reference" under livecycle designer's menu "help" option.

if ( simple expression )
list of expressions
elseif ( simple expression )
list of expressions
else
list of expressions
endif

there examples available.

you use javascript , "switch{case():...}" statement. wich might more state , test comparisons.

what shipping charge if subtotal $25.00, $25.01, $50.00 or $50.01? have careful end points of ranges.


More discussions in LiveCycle pre-ES (6.x and 7.x) discussions


adobe

Comments