You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: doc/smart-answer-flows.md
-13
Original file line number
Diff line number
Diff line change
@@ -107,19 +107,6 @@ next_node(permitted: permitted_next_nodes) do |response|
107
107
end
108
108
```
109
109
110
-
#### DEPRECATED: Using predicates
111
-
112
-
This is the same example from above expressed using predicates:
113
-
114
-
```ruby
115
-
next_node_if(:green, responded_with('green')) )
116
-
next_node(:red)
117
-
```
118
-
119
-
The `responded_with` function actually returns a [predicate](http://en.wikipedia.org/wiki/Predicate_%28mathematical_logic%29) which will be invoked during processing. If the predicate returns `true` then the `:green` node will be next, otherwise the next rule will be evaluated. In this case the next rule says `:red` is the next node with no condition.
120
-
121
-
See [Smart Answer predicates](smart-answers-predicates.md) for more detailed information about this style.
122
-
123
110
### Storing data for later use
124
111
125
112
You can use the `precalculate`, `next_node_calculation`, `save_input_as` and `calculate` methods to store data for later use.
0 commit comments