scripting@wanadoo.nl




IIF()

http://www.scriptlogic.com/kixtart/FunctionLibrary_FunctionList.aspx


actual FunctionLibrary list on 'Scriptlogic' site printer-friendly mirror of UDF topic on 'scripting@wanadoo.nl' site     internal function since 4.20 close
25 March 2002 IIF()
AuthorScriptLogic Corporation
Action Also known as an Immediate IF, this function evaluates a logical expression and then returns one of two results.
SyntaxIIF (ExpL, ExpT, ExpF) 
Parameters
  • ExpL (Required / String) The expression to evaluate.
  • ExpT (Required / String) The expression to return if ExpL is evaluated as a true value.
  • ExpF (Required / String) The expression to return if ExpL is evaluated as a false value. 
  • RemarksThis function can be used in place of IF...ELSE...ENDIF for simple conditional expressions. If this function is ever built into KiXtart as a native function, it will certainly offer considerably better performance than its IF...ELSE...ENDIF counterpart. 
    ReturnsReturns either ExpT or ExpF, based on the logical evaluation of ExpL. 
    DependenciesNone. 
    Examples
    ? IFF(InGroup('Domain Users'),'Yes, you are a domain user','No you are not a domain user')
    
     
    Source
    FUNCTION IIF ($expl, $expt, $expf)
      ; Author: ScriptLogic Corporation
      ; Immediate IF - evaluates a logical expression
      ; and then returns one of two results.
      ; If the logical expression evaluates to a true value,
      ; the first result is returned.
      ; If the logical expression evaluates to false value,
      ; the second expression is returned.
      ; Last revised: 23-November-2001
      IF $expl
        $iif=$expt
      ELSE
        $iif=$expf
      ENDIF
    ENDFUNCTION ; - IIF -
     
      original source of UDF topic. show actual FunctionLibrary list on Scriptlogic site close top
              printer-friendly mirror of UDF topic on scripting@wanadoo.nl site  




    Copyright © 2003 www.scriptlogic.com & scripting@wanadoo.nl - last updated on 20 May 2003


    Site Meter