The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use QM to express conditio statements
#1
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
}


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

Forum Jump:


Users browsing this thread: 1 Guest(s)