Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
x = IIF(a=b,c,d)
IF SEEK(value)
* record exists, update it
REPLACE field with something
ELSE
* record not found, create a new one
INSERT INTO table (field) Values (something)
ENDIF
IF SEEK(value)
result = field
ELSE
result = defaultvalue
ENDIF
result = IIF(SEEK(value),field,defaultvalue)
Chris Miller said:A further limitation is, that you can't use commands within IIF, you can only have expressions evaluating to a result.
a = 0
=IIF( a == 0, EXECSCRIPT( "a = 2" + CHR( 13 ) + "? a" ), EXECSCRIPT( "a = 3" + CHR( 13 ) + "? a" ))
a=0 && or change to anything <>0
a = IIF(a=0,2,3)