Loop
while
The writing of a loop is as follows:
The scenario will be as follows:
[Chatbot] Total: 0
[Chatbot] Give me a number
[User] 3
[Chatbot] Total: 3
[Chatbot] Give me a number
[User] 4
[Chatbot] Total: 7
[Chatbot] Give me a number
[User] 6
[Chatbot] Total: 13
[Chatbot] Finish!
for ... of
The for ... of
loop allows you to browse a table:
It also works with a string, a number, and an object:
Last updated