applescripting help

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

  1. exile666 macrumors newbie

    Joined:
    Mar 28, 2010
    #1
    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

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

Share This Page