@@ -162,12 +162,12 @@ other operators are evaluated in place and leave their result in `$?`, e.g.
|
||||
under `if`/`&&`/`||`.
|
||||
|
||||
```bash
|
||||
var timeout = 5 # set (values become an array)
|
||||
var testvar = 5 # set (values become an array)
|
||||
var service_args = -a --long-arg "parameter"
|
||||
|
||||
service_args u --long-arg # membership in the array
|
||||
timeout == 5 # compare first element against a value
|
||||
timeout =~ '^[0-9]+$' # regex match
|
||||
testvar == 5 # compare first element against a value
|
||||
testvar =~ '^[0-9]+$' # regex match
|
||||
```
|
||||
|
||||
Operators:
|
||||
|
||||
Reference in New Issue
Block a user