Possible for AppleScript to set instance variables for KM?

I don't see a KM action to set multiple variables, so I use AppleScript to set them at once.
It appears I can't create instance variables with AppleScript for use in subsequent actions?

As an example, I created six instance variables with AppleScript, but they are passed on to the next action. Can anyone confirm if this is indeed the case? Or is there another way to do it?

PS: I know I can either set them one by one or use input as instance variables. But either is what I want. If I have more than 10 variables, AppleScript looks much nicer to me.

Thanks!

In this case the WiKi is your friend here.

So:

set kmInst to system attribute "KMINSTANCE"
tell application "Keyboard Maestro Engine"
	setvariable "Local__FromAS" instance kmInst to "Variable set in AppleScript."
end tell

for example.

Wow~
I searched for a long time but did not came across to this page.
Thank you so much!

You're welcome! And thanks for revealing to me a better way to initialise a bunch of variables in one (concise) go!