Wiki Update: Variables

Submitted for your review, comment, and revision, the following Wiki article has been updated:
###Variables (in the Manual Segment)

@peternlewis, this page conflicts with: Keyboard Maestro Variables (in the main Wiki segment). They need to be merged into one page ASAP to avoid conflicts and misinformation. If you’d like, I can do this. Just let me know which page should be the master.

Primary Changes

  • ADD Scope Table
    • Please review this carefully, and fix as needed.
    • I wrote what I understand, but I’m still not completely clear on all aspects of Local and Instance variables
  • ADD Sections.

There appears to be an error in this version of the Wiki Variables page:

Keyboard Maestro Variables

Keyboard Maestro has four types of variables, distinguished based on their name.

Password Variables — names start or end with “Password” or “PW”.
Local Variables — names start or end with “Local ” or “𝕃”.
Instance Variables — names start or end with “Instance ” or “𝕀”.
Variables — All other variables.

I believe this is incorrect:
names start or end with “Local ”

I tried testing it, and the Variable appeared in Preferences, but, there may be a bug there:

I'm running Keyboard Maestro 8.0.1 (8.0.1) on macOS 10.11.6.

Local Variables Test #2

Somethings wrong with the Preferences Window.

MACRO: Local Variable KM 8.0.1 @Test

Local Variable KM8 @Test.kmmacros (2.6 KB)

I have merged the two into the manual.

1 Like

Variables can never have spaces at the start or end, and it shouldn’t matter if they do, so any exception to that is a bug.

Looks good. Thanks for the quick response.