Below is the text of the page https://pipe.bot/docs/math stored 2020-06-15 by archive.org.ua. The original page over time could change. View as original html

Do the math - Pipe Chatbots

Pipe Technology [/] Pricing Documentation API Login × Table of Contents Getting Started Message Answer Constants Variables Goto and labels Compare, condition and case Follow-up Message How to send a picture How to insert emoji A map within a map Pipe typo­graphy s02e01 Do the math Settings Analytics How to under­stand natural language? Numeric and Text Processor External APIs JSON Segments Do the math At times we all have to do our math. How does it work? Let's imagine the human orders two cups of latte at a price of $3.75 each. How to calculate the total price? It is obvious for human intelligence that 2*$3.75=$7.5 , however your bot is not able to do the math on its own. So, what do we do? This is when we need the calculator, which is, by the way, pretty easy to use. Let`s assume the bot knows the price of one cup %cupPrice=3.75 and also memorized how many cups were ordered %cupNumber=2 . %Total is used as the variable to calculate the final price. 🐫 All calculations are run by addressing to an external calculator https://api.pipe.bot/calc . Take it as Paradigm. Write down the following in the node: @calc %Total=%cupPrice*%cupAmount And, voila, %Total equals 7.5 ! Obviously, the calculator accomplishes not only multiplication operations, but also addition, division, approximation, rooting and so on. Refer to Fabrikant's Accounting Book to find the list of available functions . Email us Terms of Service Privacy policy © Stickerpipe 2017—2019, 563 Pilgrim Drive, Suite B, Foster City, CA 94404 English Русский