applescripting help

Discussion in 'Mac Programming' started by exile666, Mar 28, 2010.

  1. exile666 macrumors newbie

    Mar 28, 2010
    i need help. is there a way to put an if statement in variable? is seem simple but when i try "set variable to (if statement)"

    please help?
  2. larkost macrumors 6502a

    Oct 13, 2007
    No, you have to go the other way around:
    if <test statement> then
        set <my variable> to <my value>
        set <my variable> to <my other value>
    end if

Share This Page