Code: Select all
gold := $900
unicorn := 1000
if (gold < unicorn)
{
SoundBeep, 500, 900
}
ExitApp
Code: Select all
gold := $900
unicorn := 1000
if (gold < unicorn)
{
SoundBeep, 500, 900
}
ExitApp
More precisely: gold := $900 is not a text (or rather a string), because is not enclosed in quotes. It's improperly formatted number, due to the $, which results in "nothing". Outcome is the same though.tidbit wrote:remove the $ then compare. "$900" isn't a number, it's text. basically you're comparing if nothing (text aint a number) is less than 1000, which is true.
Code: Select all
[/c] forum tag to share your code.
Click on [b]✔[/b] ([b][i]Accept this answer[/i][/b]) on top-right part of the post if it has answered your question / solved your problem.
Users browsing this forum: Dobbythenerd1, Google [Bot] and 317 guests