Skip to content

Commit

Permalink
Merge pull request #243 from glific/Create-a-Counter-Varibale-in-a-Fl…
Browse files Browse the repository at this point in the history
…ow.md

Update 06. Create a Counter Variable in a Flow.md
  • Loading branch information
PriyeshSikariwal authored Nov 29, 2024
2 parents 993d1bc + 3d76d21 commit 5e90dce
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ Then in the flow, you can use it anywhere where you want to repeat things. One o


![image](https://user-images.githubusercontent.com/32592458/219549928-b51c2294-8b4c-4412-ba35-48c6bb13140f.png)

To add two counters, you can use the following:

`<%= (@contact.fields.counter || 0) + (@contact.fields.add_counter || 0) %>`

0 comments on commit 5e90dce

Please sign in to comment.