Templatesforwapkiz@gmail.com | Today 5 April 2025 Contact

How to use IF condition on wapkiz and wapaxo websites

Home / Tutorials / How to use IF condition on wapkiz and wapaxo websites

By mujad
On March 31, 2024
432 Readers
2 Comments

As a programming language, on wapkiz and wapaxo we have the option of using some predefined codes on the website.

Today we are going to talk about the IF condition, for those who have already programmed using javascript, or another language, they may have seen some normal conditions like IF, ELSE etc.

Using the IF condition is to compare a certain object to another, if the condition is true the operation will be satisfactory or not, let's compare using the mathematical symbols that are equal (=), greater than (>), less than (<) and different (~).

Remove all asterisks in codes

To use it, we have the following code:

(*if first condition = second condition) Content (/if)

Ex:
(*if love=love) Condition true (/if)
(*if 9 > 11) Condition false(/if)
(*if love ~ hate) True condition (/if)

Let's take a concrete example from wapkiz.

Example 1:
Suppose you want to show a GOOD NIGHT message from 6 pm, this can be done using the IF condition and wapkiz hours, for example: (*if ::*date=h:: > 17) GOOD NIGHT (/if)

It's easy, in the code above we declare that if the time is greater than 17 show the message.

Example 2:
We will show a message if the file is downloaded 100 times.

[fm]to=:to-id:||
(*if 432 = 100) THE FILE HAS BEEN DOWNLOADED 100 TIMES (/if)
[/fm]

Example 3:
If a given user has not completed or completed the registration form or age etc. (*if :*profile(%name%)-var(age):=) Complete your profile please(/if)

Above, we did not declare anything for the comparison value, that is, it is empty, it means that it is equal to empty.

Any questions leave them in the comments.

Share

2 Comments

Rose

Good tutorial, more power admin

2023 ago
mujad

Thanks

2023 ago

Leave your Comment


Related Posts