Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
if else
#15
meanmuggin Wrote:int hwnd=val(_command)
if w<99,999.99
w=100,000.00
else
dou 352 454


this is in a macro with window trigger! w is in a function

this is w str a.getwinclass(child(331 "98,000.00" 0x5))

this is my code so far what am i doing wrong? it keeps giving a syntax on the = ?

your problem is that w is a string variable. you would first need to remove the commas from the string, then convert to a double, then compare to to a number without commas.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)