With crafter.ai you can perform checks on variables using logical operators.
To do so select the option as shown in the figure:
![the chatbot evaluates some conditions the chatbot evaluates some conditions](https://i0.wp.com/crafter.ai/wp-content/uploads/2024/06/the-chatbot-evaluates-some-conditions.webp?resize=1024%2C706&ssl=1)
Click on add a condition to proceed:
![add chatbot condition add chatbot condition](https://i0.wp.com/crafter.ai/wp-content/uploads/2024/06/add-chatbot-condition.webp?resize=566%2C620&ssl=1)
At this point a new field will be added where you can evaluate your condition:
![how to set up a new condition to evaluate how to set up a new condition to evaluate](https://i0.wp.com/crafter.ai/wp-content/uploads/2024/06/how-to-set-up-a-new-condition-to-evaluate.webp?resize=550%2C658&ssl=1)
Clicking on the newly created area will open the condition evaluation interface:
![evaluate chatbot conditions set up area evaluate chatbot conditions set up area](https://i0.wp.com/crafter.ai/wp-content/uploads/2024/06/evaluate-chatbot-conditions-set-up-area.webp?resize=760%2C826&ssl=1)
Let’s see a simple example of usage below.
example of use
We will now create a flow where we will evaluate the user name.
![evaluate user name evaluate user name](https://i0.wp.com/crafter.ai/wp-content/uploads/2024/06/evaluate-user-name.webp?resize=1024%2C474&ssl=1)
The user name will be saved in the slot_2 variable where we will perform a check:
![how to evaluate user name with chatbot condition how to evaluate user name with chatbot condition](https://i0.wp.com/crafter.ai/wp-content/uploads/2024/06/how-to-evaluate-user-name-with-chatbot-condition.webp?resize=1024%2C554&ssl=1)
Let’s check the string with the logical operator “==”.
At this point we will have the chatbot respond with the user name.
![how to see evaluation output how to see evaluation output](https://i0.wp.com/crafter.ai/wp-content/uploads/2024/06/how-to-see-evaluation-output.webp?resize=1024%2C477&ssl=1)
NB: this is just an example to explain how it works.
The real possibilities are endless, take some time to do some experiments directly on the platform.