Operators keyword

not

Keyword-style logical negation — equivalent to prefix !.

not(expr) negates a boolean expression. Affogato also supports the standard ! prefix operator; not(...) is an alternative readable form.

Affogato

example.aff
guard not(users.isEmpty()) else {
    return "No users"
}
return users.get(0).name

Generated Java

Example.java
if (users.isEmpty()) {
    return "No users";
}
return users.get(0).getName();

Related

See also

← All keywords