Assertion: condition | /r/CapableOf | return true
Facets:
Source sentences:
text: -lt 10 ]; then The above condition will return true if $foo contains an integer greater than or equal to 3 and Less Than 10.
text: If the first condition returns false, it doesn’t matter what the second one returns; the result will be false.
text: Example: if [ $num -lt 1 ]; then The above condition returns true if $num is less than 1.
text: I will illustrate this difference using two examples, starting with the old single-bracket situation: if [ -a *.sh ]; then The above condition will return true if there is one single file in the working directory that has a .sh extension.
text: if [[ $num -eq 3 && "$stringvar" == foo ]]; then The above condition returns true
text: Basically, a condition can compare values, returning either true or false.
text: Basically, a condition can compare values, returning either true or false.