Getting Started with Variables and Conditions

Learn How to Manage Variables and Conditions on Aryel!

Aryel
Written by AryelLast update 3 days ago

Aryel’s Variables are a powerful tool that allows you to enhance the customization and interactivity of your AR experiences. This guide will walk you through the process of accessing the Variables Panel, creating variables, and using them effectively within your campaigns.

Don’t forget: this feature is exclusively available for Enterprise CRM users.

Accessing the Variables Panel

To access the Variables Panel, locate and click on the relevant icon in the settings section of the side toolbar. This will open up the Variables Panel modal.

If no variables have been created for the campaign yet, the modal panel will display a message inviting you to start creating one.

Creating Variables

When you start creating a variable, a table will appear, requesting the following values:

  • Name: This is the name of the variable used to recall it within the campaign. It will appear within braces {}.

  • Type: Choose from three different types: number, text, or boolean.

  • Starting Value: Define the default value for the variable. It can change based on interactions within scenes during the AR experience.

All three fields (Name, Type, Starting Value) are mandatory. The 'Save' button will only be enabled when these fields are filled out.

If you click the 'Cancel' button, any unsaved variable will be discarded, and the corresponding line will be removed from the table.

To remove a variable from the campaign, you can use the 'Delete' action. A confirmation popup will appear to confirm this action.

To add a new variable, click on 'Create Variable,' and a new line with empty fields will appear.

If you change the type of a variable after entering a value, the value field will be emptied if it no longer matches the new type's requirements. For example, changing a text variable to a number variable will clear the field to all the text stored in the variable.

Using Variable Values

Variable values can be recalled within text areas to enhance personalization. For instance: "Hello, I am {first_name} {last_name}."

Sorting Variables

You can sort variables in the table alphabetically by clicking on the 'Name' and 'Type' table titles.

Congratulations! You now have a comprehensive understanding of how to effectively utilize the Variables Panel in Aryel's. By creating and managing variables, you can enhance the customization and interactivity of your AR campaigns, providing a more engaging and personalized experience for your audience.

For more in-depth information and guidance, stay tuned for the upcoming training material. If you have any further questions or need assistance, don't hesitate to reach out to our support team.

Conditions

Conditions are also crucial for ensuring interactions occur only if certain criteria are met or unmet. You can apply conditions to any type of interaction.


Adding a Condition

  • Start by adding the interaction you want to apply the condition to.

  • Click on “Add condition” above the ‘Result of interaction’ field. This changes the layout to a ‘conditional block’ with an ‘IF’ section.


Setting Up the Condition

In the ‘IF’ section, you will find the following fields:

  • Variable: Select the variable from the dropdown menu.

  • Operator: Choose the operator (e.g., greater than, less than, equal to). The available operators vary based on the selected variable.

  • Value: Enter the reference value for the selected operator.

The condition string reads as:

"if {variable} is {operator} compared to {value}, then {result of interaction}"


Additional Actions

Hovering over the ‘IF’ line reveals action buttons:

  • Add Condition: Allows adding multiple conditions to the interaction. If you have two or more conditions, you can specify whether all conditions must be met (AND) or any condition can be met (OR).

  • Add Else: Adds an ‘ELSE’ section at the bottom, specifying the result of the interaction if the conditions are not met.

  • Delete: Removes the conditional part of the interaction, reverting to a single result.

With the ‘ELSE’ section enabled, the interaction format becomes:

"if {variable} is {operator} compared to {value}, then {result of interaction}, else {result of interaction}"

By using conditions effectively, you can ensure your interactions are dynamic and responsive to various scenarios.

Did this answer your question?