Skip to content

Commit 0ae1497

Browse files
authored
Add missing cmd to nu command (#1634)
Add if file exists syntax
1 parent fb3c7a2 commit 0ae1497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/coming_from_cmd.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ This table was last updated for Nu 0.67.0.
3131
| `GOTO` | | Jump to a label |
3232
| `IF ERRORLEVEL <number> <command>` | `if $env.LAST_EXIT_CODE >= <number> { <command> }` | Run a command if the last command returned an error code >= specified |
3333
| `IF <string> EQU <string> <command>` | `if <string> == <string> { <command> }` | Run a command if strings match |
34-
| `IF EXIST <filename> <command>` | | Run a command if the file exists |
34+
| `IF EXIST <filename> <command>` | `if (<filename> \| path exists) { <command> }` | Run a command if the file exists |
3535
| `IF DEFINED <variable> <command>` | | Run a command if the variable is defined |
3636
| `MD` or `MKDIR` | `mkdir` | Create directories |
3737
| `MKLINK` | | Create symbolic links |

0 commit comments

Comments
 (0)