I recently asked a question and was reminded that pseudocode is not allowed on this site; I translated it because I felt the original code would have been confusing. The reason being that the scripting platform I'm coding for is likely a custom built one (using VB6 probably...something old) for a botting program of a very old game and has syntax like this:
dim @var1,@var2,@var3 //declare 3 variables
let @var1,=,1 //set var1 to 1
let @var1,+,1 //increment var1 by 1
if @var1,>=,2,label1 //on success jump to label1
goto label2
label1
print variable1 is >= 2
end //ends the script
label2
print variable1 is < 2
end
I've never seen this syntax anywhere else but I may just be uninformed. The botting program is called ASSA, for the game StoneAge, and is written by some dude (so the audience is fairly limited, probably only in enthusiast circles). How then, should I ask this question (or can I)?
For reference, the question (now deleted) is this: https://codereview.stackexchange.com/questions/245277/find-a-positive-number-within-range-without-using-modulo