if statement / goto

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

ever_boy_
Developers
Developers
Posts: 308
Joined: 06 Jul 2012, 13:44
Noob?: No

if statement / goto

#1 Post by ever_boy_ »

is there a way I can use a variable after the goto?
like this:

Code: Select all

automacro qwe {
		console /\(From: (.*)\) : save (one|two|three)/i
		call {
		if (($lastMatch2 = um) || ($lastMatch2 = dois) || ($lastMatch2 = tres)) goto $.lastMatch2

		:one
		do something

		:two
		do something
		stop

		:three
		do something
		stop

	}
}