From 6789d138fc2f348487d8948c16f2732bfed198b5 Mon Sep 17 00:00:00 2001 From: TurdPooCharger <35666439+TurdPooCharger@users.noreply.github.com> Date: Sun, 29 Apr 2018 00:08:38 -0400 Subject: [PATCH] Updated Scripting: chk (markdown) --- Scripting:-chk.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Scripting:-chk.md b/Scripting:-chk.md index d4d952a..ad6b89e 100644 --- a/Scripting:-chk.md +++ b/Scripting:-chk.md @@ -8,9 +8,16 @@ The `chk` command is used to check two values against each other (this is not ca Example: `chk $[HAX] ntrboot` +**Example 1** +True: `chk hello hello` +True: `chk "hello" "hello"` +True: `chk HELLO hello` +True: `chk HeLlO "hElLo"` + ## Notes -The two arguments follow the same [implicit vs explicit argument rules](https://github.com/d0k3/GodMode9/wiki/Scripting:--echo#implicit-vs-explicit-statements) as all other scripts. +1. The two arguments follow the same [implicit vs explicit argument rules](https://github.com/d0k3/GodMode9/wiki/Scripting:--echo#implicit-vs-explicit-statements) 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`). -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`). \ No newline at end of file +3. The `chk` command is often used in conjunction with the `if` command. See more about branching statements. \ No newline at end of file