12345678910111213141516171819 |
- true && echo and || echo or
- false && echo and || echo or
- false || echo false
- true && echo true
- true || echo cant get here
- false && echo cant get here
- false || false || echo double or
- true && true && echo double and
- false || true && echo or and
- contains "one two three" two && echo true || echo false
- contains "one two three" abc two && echo true || echo false
- contains "one two three" foo bar && echo true || echo false
- starts-with "one two three" one && echo true || echo false
- starts-with "one two three" abc one && echo true || echo false
- starts-with "one two three" three && echo true || echo false
- ends-with "one two three" three && echo true || echo false
- ends-with "one two three" abc three && echo true || echo false
- ends-with "one two three" one two && echo true || echo false
|