Page 1 of 1

How can I say I want add startingNum+1 for Var 79, 80, 81,82,83,84 and 85?

Posted: 09 Aug 2020, 10:21
by Clemens375
Hello,

How can I say I want add startingNum+1 for Var 79, 80, 81,82,83,84 and 85?

Code: Select all

	if (Var = 79) {
		GuiControl,, startingNumS, %  (startingNumS += 1)
	}

Thank you!

Re: How can I say I want add startingNum+1 for Var 79, 80, 81,82,83,84 and 85?  Topic is solved

Posted: 09 Aug 2020, 11:55
by boiler
I assume you mean that you want to add 1 to startingNum, not add startingNum+1.

Code: Select all

	if (Var >= 79) && (Var <= 85) {
		GuiControl,, startingNumS, %  (startingNumS += 1)
	}
By the way, you said startingNum, but then your code shows startingNumS, so change it if that’s not what you want.

Re: How can I say I want add startingNum+1 for Var 79, 80, 81,82,83,84 and 85?

Posted: 09 Aug 2020, 15:41
by Clemens375
@boiler

Thank you again for your help!