Define one value for multiple variables

I’m sorry, for absolutelly newbie question :expressionless:

I would like to define for several variables one value such as:

set {item_1, item_2, item_3, item_4, item_5, item_6, item_7, item_8, item_9} to false

Script Editor compile it, but while run I get error code “Can’t get item1 of false”

Of course exist this way

set item_1 to false
set item_2 to false

But it spent a lot of lines of code :expressionless:

Exist another - line savy - way to write this declaration?

Model: iMac
AppleScript: 2.0
Browser: Firefox 3.0b5
Operating System: Mac OS X (10.5)

Hi ferite,

This should work as expected:

set {a, b, c} to {false, false, false}

As you can see, it is possible to define multiple variables at once, but each needs its corresponding value.


Thank you, it works fine :slight_smile: