๐ง Logic of Expressions
Support for logical connectors in expressions.
&& (AND)โ
Joins expressions/actions with "and" logic. Succeeds only if all succeed.
# All must exist
exist "/system/build.prop" && exist "/system/ole" && exist "/system/a"
note
If an expression fails, subsequent ones are skipped.
|| (OR)โ
Joins expressions/actions with "or" logic. Succeeds if any succeed.
# Any must exist
exist "/system/build.prop" || exist "/system/ole" || exist "/system/a"
note
If an expression succeeds, subsequent ones are skipped.
() (Grouping)โ
Groups multiple expressions/actions into a single expression.
# Grouped AND/OR
(exist "/system/build.prop" && exist "/system/ole") || (exist "/system/huh" && exist "/system/a")
note
Grouped expressions run in a separate scope, not affecting the main script.
not / !โ
Negates an expression/action, inverting its success/failure.
# Negate individual checks
not exist "/system/build.prop" && not exist "/system/ole" && not exist "/system/a"
# Negate grouped checks (note && becomes || in negation)
not (exist "/system/build.prop" || exist "/system/ole" || exist "/system/a")
warning
When negating a group, &&
becomes ||
and vice versa due to logical inversion.