Author Topic: convert "IIF" into oxygen  (Read 1047 times)

0 Members and 1 Guest are viewing this topic.

Frankolinox

  • Full Member
  • ***
  • Posts: 230
convert "IIF" into oxygen
« on: February 24, 2013, 08:22:23 AM »
how I can convert freebasic command "IIF" in OXYGEN ?

fOk = GetSaveFilename(ofn)
    IF fOk THEN
        ix = INSTR(sFileSpec, NULL)
        '------------------------------------------------------------------------- //
        sFileSpec = IIF(ix, LEFT(sFileSpec, ix - 1), "")
        '------------------------------------------------------------------------- //
        'IIF = Return one of two values based upon a TRUE/FALSE evaluation.
        dFlags = ofn.Flags
    END IF


best regards, frank