Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use QM to express conditio statements
#2
I Not sure, the first answer is correct?  


Macro Macro9
Code:
Copy      Help
out

;ture
int recurse = 1
int success
success = zip.AppendFiles("c:/temp/*",recurse)
if (success != 1) 
,;do something

;Starts with
str s1 = "somestring word"
if(s1.beg("somestring")) out "True"; else out "False"

;Ends with
str s2 = "word somestring"
if(s2.end("somestring")) out "True"; else out "False"

;Empty
str s3 = ""
if(empty(s3)) out "True"; else out "False"

;contain
str s4 = "word somestring word"
int i = find(s4 "somestring")
if(i!=-1) out "True"; else out "False"


Messages In This Thread
Use QM to express conditio statements - by derle - 06-11-2019, 12:59 AM
RE: Use QM to express conditio statements - by win - 06-14-2019, 01:28 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)