
if
List of commands for if:
-
if:ai:f5141 How to rewrtie this line in c##, if (fopen64::_fopen64 == (code *)0x0)$ if (fopen64::_fopen64 == (code *)0x0)try on your machineexplain this command
-
if:tldr:0094b if: Execute the first specified commands if the condition is true otherwise execute the second specified commands.$ if ${condition} (${echo Condition is true}) else (${echo Condition is false})try on your machineexplain this command
-
if:tldr:1ab59 if: Check whether a [f]ile exists.$ if [[ -f ${filename} ]]; then ${echo "Condition is true"}; fitry on your machineexplain this command
-
if:tldr:3f69a if: Check whether a variable is defined.$ if [[ -n "$${variable}" ]]; then ${echo "Condition is true"}; fitry on your machineexplain this command
-
if:tldr:564bf if: Execute the specified commands if the condition command's exit status is not zero.$ if ! ${condition_command}; then ${echo "Condition is true"}; fitry on your machineexplain this command
-
if:tldr:57333 if: List all possible conditions (`test` is an alias to `[`; both are commonly used with `if`).$ man [try on your machineexplain this command
-
if:tldr:79094 if: Check whether `%errorlevel%` is greater than or equal to the specified exit code.$ if errorlevel ${2} (${echo Condition is true})try on your machineexplain this command
-
if:tldr:86ce1 if: Execute the specified commands if the condition is false.$ if not ${condition} (${echo Condition is true})try on your machineexplain this command
-
if:tldr:8bb92 if: Check whether a file exist.$ if exist ${path\to\file} (${echo Condition is true})try on your machineexplain this command
-
if:tldr:a1386 if: Check whether a [d]irectory exists.$ if [[ -d ${path-to-directory} ]]; then ${echo "Condition is true"}; fitry on your machineexplain this command
-
if:tldr:bee77 if: Execute the first specified commands if the condition command's exit status is zero otherwise execute the second specified commands.$ if ${condition_command}; then ${echo "Condition is true"}; else ${echo "Condition is false"}; fitry on your machineexplain this command
-
if:tldr:c26d6 if: Execute the specified commands if the condition is true.$ if ${condition} (${echo Condition is true})try on your machineexplain this command
-
if:tldr:e8cf6 if: Check whether two strings are equal without respecting letter case.$ if /i %${variable}% == ${string} (${echo Condition is true})try on your machineexplain this command
-
if:tldr:f4017 if: Check whether a file or directory [e]xists.$ if [[ -e ${filename_or_directory} ]]; then ${echo "Condition is true"}; fitry on your machineexplain this command
-
if:tldr:f5f92 if: Execute the specified commands if the condition command's exit status is zero.$ if ${condition_command}; then ${echo "Condition is true"}; fitry on your machineexplain this command
-
if:tldr:f8de8 if: Check whether two strings are equal.$ if %${variable}% == ${string} (${echo Condition is true})try on your machineexplain this command