From b10e332e3143859200902e4bd738ab94243d9a98 Mon Sep 17 00:00:00 2001 From: BruceChen Date: Wed, 8 Apr 2026 22:28:52 +0800 Subject: [PATCH] docs: update usage guide for MCC instance and note formatting - Removed unnecessary period from the MCC instance reference. - Reorganized the note section to improve clarity, moving it to a more appropriate location and ensuring consistent formatting for examples involving single and double quotes. --- docs/guide/usage.md | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/docs/guide/usage.md b/docs/guide/usage.md index 270bca36..d6dcfaeb 100644 --- a/docs/guide/usage.md +++ b/docs/guide/usage.md @@ -570,7 +570,7 @@ In scripts and remote control, no slash is needed to perform the command, eg. `q The condition is always returned as a boolean, so only comparison can be done, if needed cast the expression result to bool. - Also the instance of MCC is available with `MCC.`. + Also the instance of MCC is available with `MCC`.

Note

@@ -591,14 +591,6 @@ In scripts and remote control, no slash is needed to perform the command, eg. `q /execif 'test == "Something"' "send Success!" ``` -

Note

- - **You can use single quote (`'`) to wrap your expression if the expression contains double quote (`"`)** - - **Adding back-slash (`\`) before the double quote will also work (`/execif "test == \"Something\"" "send Success!"`)** - -
- ``` /set test2=1 /execif 'test2 == "1"' "send Success 2!" @@ -622,6 +614,12 @@ In scripts and remote control, no slash is needed to perform the command, eg. `q /execif "1 == 1" "execmulti send 1 -> send 2 -> send 3" ``` +- **Note** + + **You can use single quote (`'`) to wrap your expression if the expression contains double quote (`"`)** + + **Adding back-slash (`\`) before the double quote will also work (`/execif "test == \"Something\"" "send Success!"`)** +