Hi,
You can create expression by creating a condition using 'if' condition.
For more details, please refer to fluent user's guide: 5.3. Creating and Using Expressions (ansys.com)
If you are not able to access the link, please refer to this forum discussion: https://forum.ansys.com/forums/topic/using-help-with-links/#latest
Thank you.