Use QM to express conditio statements derle Junior Member Posts: 1 Threads: 1 Joined: Jun 2019 06-11-2019, 12:59 AM (This post was last modified: 06-11-2019, 01:02 AM by derle.) Hello everyone, I am a beginner, I want to know how to use QM, express the following statement, thanks in advance. 1. bool recurse = true; bool success; success = zip.AppendFiles("c:/temp/*",recurse); if (success != true) {     //do something     return; } 2. if (var1 Starts with "somestring") {     //do something } if (var2 Does not start with "somestring") {     //do something } 3. if (var1 Ends with "somestring") {     //do something } if (var2 Does not Ends with "somestring") {     //do something } 4. if (var1 Is Empty) {     //do something } if (var2 Is Not Empty) {     //do something } Reply Reply win Senior Member Posts: 711 Threads: 95 Joined: Mar 2018 06-14-2019, 01:28 AM (This post was last modified: 06-14-2019, 01:39 AM by win.) I Not sure, the first answer is correct?   Macro Macro9 Code: ```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"``` Reply Reply « Next Oldest | Next Newest »