Gtk.TryExpression¶
class — extends Expression
A GtkExpression that tries to evaluate each of its expressions until it succeeds.
If all expressions fail to evaluate, the GtkTryExpression's evaluation fails as well.
Constructors¶
new¶
Creates a GtkExpression with an array of expressions.
When evaluated, the GtkTryExpression tries to evaluate each of its expressions until it succeeds.
If all expressions fail to evaluate, the GtkTryExpression's evaluation fails as well.
The value type of the expressions in the array must match.
Parameters:
expressions— The array of expressions