diff --git a/book/coming_from_cmd.md b/book/coming_from_cmd.md index 30888198c5c..d2e0dc1312a 100644 --- a/book/coming_from_cmd.md +++ b/book/coming_from_cmd.md @@ -32,7 +32,7 @@ This table was last updated for Nu 0.67.0. | `IF ERRORLEVEL ` | `if $env.LAST_EXIT_CODE >= { }` | Run a command if the last command returned an error code >= specified | | `IF EQU ` | `if == { }` | Run a command if strings match | | `IF EXIST ` | `if ( \| path exists) { }` | Run a command if the file exists | -| `IF DEFINED ` | `if (scope variables \| any {\|var\| $var.name == ''}) { }` | Run a command if the variable is defined | +| `IF DEFINED ` | `if '$' in (scope variables).name { }` | Run a command if the variable is defined | | `MD` or `MKDIR` | `mkdir` | Create directories | | `MKLINK` | | Create symbolic links | | `MOVE` | `mv` | Move files |