I need to conditionally insert additional text if there is a non empty webhook value

I have a price value that comes in via webhook with no $ before it.

I manually put a $ before it in various places, but if there is no value in a particular variable coming in I do not want the $ pushed to the other end with nothing there.

How can I detect if there is a value and conditionally add the $ only when there is something there.

See in my screenshot I have the $ before all the potential data, but not all fields have data in them at all times, and if there is no data I am left with a $ and I would just prefer it to be blank.

image

Use if with length

Output

Screenshot_2023-12-21_231243

3 Likes