Numeric variables are used to store numbers, such as the temperature, the humidity level or for example…the number of astronauts in space.
2 options for managing numeric variables from IFTTT
With IFTTT, you can use the following two actions when creating your own applet from scratch:
- Update a numeric variable to a new value you specify
- Do a mathematical operation (add or subtract) with a numeric variable
Let’s have a look at how you can setup and manage a numeric variable via IFTTT.
Setting up a numeric variable to check how many astronauts are out there
- In Apilio, create a numeric variable called “astronauts” and set it to 6, which at the time of writing was the number of people out there in our vast space as per Nasa:
- Go to IFTTT now and select “create” to start building your own applet (https://ifttt.com/create).
- For the “If this” part, select the Space service, and the trigger “Astronaut enters space”
- For the “then that” part, select the Apilio service, and “Do a mathematical operation with a numeric variable” as your action. Then your “astronauts” variable, “add” as your operation and add 1.
- Review and click complete to finish setting up your applet, you are done!
- You can also subtract astronauts when the come back home with the alternative trigger, “Astronaut exits Space”
This is just an example to show you a step-by-step setup, but the sky is the limit! Let us know how you are using your numeric variables with Apilio.
Do you want to know more?
Have a look at these examples with the other types of variables: