--- url: https://developer.youcan.shop/themes/tags/assign.md --- # `assign` Creates a new named variable. **Example:** ```liquid {% assign my_variable = false %} {% if my_variable != true %} This statement is valid. {% endif %} ``` ::: tip Output ```html This statement is valid. ``` :::