Jump to content
Macro Express Forums

Variables


suncool4u
 Share

Recommended Posts

Hello IPS community,

 

I am new to macros and I want to learn it thoroughly. For your information, I don't have any knowledge about coding or programming. Now, my question is about variables. I think it's impossible to use macro express effectively without variables so can anybody explain me about what is variables and how to use it in macros? Please try to explain in laymen terms if possible.

 

Regards,

 

Abhi

Link to comment
Share on other sites

A variable is something that represents something else, E.g.,

 

x = 2

y = 3

z = x + y = 5

 

a = "Good"

b = "Hi"

c = First character in a = "G"

d = Number of Characters in b = 2

 

x, y, and z are numeric variables.

a, b, and c are text variables.

d is a numeric variable that says something about a text variable.

 

In Macro Express 3, numeric variables always start with the letter N, are followed by a number, and are enclosed in percentage signs:

 

%N1% = 3

%N2% = 7

%N3% = %N1% + %N2% = 10

 

Text variables always start with the letter T, are followed by a number, and are enclosed in percentage signs:

 

%T1% = "Bye"

%T2% = "Happy"

%T3% = First character in %T1% = "B"

 

%N4% = Number of Characters in %T2% = 5

 

I hope this gets you started. The Help in Macro Express explains variables quite well. There are many sample ME3 macros available that illustrate how variables work in real life.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...