Skip to content
TurdPooCharger edited this page May 1, 2018 · 10 revisions

This page delves into greater details about the chk command.

Usage

The chk command is used to check two values against each other (this is not case-sensitive).

Syntax & Example

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

Notes

  1. The two arguments follow the same implicit vs explicit argument rules as all other scripts.

  2. 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).

  3. The chk command is often used in conjunction with the if command. See more about branching statements.

Clone this wiki locally