-
Notifications
You must be signed in to change notification settings - Fork 194
Scripting: chk
This page delves into greater details about the chk
command.
The chk
command is used to check two values against each other (this is not case-sensitive).
chk <arg1> <arg2>
Example:
chk $[HAX] ntrboot
Example 1
True: chk hello hello
True: chk "hello" "hello"
True: chk "hello" hello
True: chk hello "hello"
True: chk HELLO hello
True: chk HeLlO hElLo
Example 2
False: chk hello bye
False: chk hello konichiwa
False: chk hello hello.
False: chk zero 0
False: chk 00 0
-
The two arguments follow the same implicit vs explicit argument rules as all other scripts.
-
The two arguments can be many things, but the main use is variables. For example, checking if a variable matches another variable, or a certain string (i.e.
1:/import
,a9lh
,0
). -
The
chk
command is often used in conjunction with theif
command. See more about branching statements.