Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with if
#1
Hey im trying to do this, if something is greater then 500, out Higher but cannot figure out how to do it i have this so far.... but it seams to out Higher if just anything is there.....



Code:
Copy      Help
Acc a=acc("" "CLIENT" win("Instant Message" "YSearchMenuWndClass") "YIMInputWindow" "" 0x1000)
str name=a.Name
if name > "500"
,out "Higher"


plz help

thanks
#2
why are u trying 2 record what some1 types?
#3
Operator > usually is used with variables of numeric types, eg int, long, double. If used with str, it compares pointer to string, not string. Function val converts string to numeric.
#4
Thanks Gint, so something like this would be better right? if not please show me an example of how i can do this!


Code:
Copy      Help
Acc a=acc("" "TEXT" "Windows Internet" "ATL:01F87AF8" "" 0x1800 0x0 0x20000040)
str value=a.Value
str b = "1000000"
if(value>b)
,out value


Forum Jump:


Users browsing this thread: 1 Guest(s)