Author Topic: Hot Codes: additional default value options  (Read 157 times)

Offline tempusrob

  • Newcomer
  • *
  • Posts: 4
    • View Profile
Hot Codes: additional default value options
« on: February 13, 2025, 08:15:08 AM »
Currently there's //?? for default values, when no matching value is found in a hot code list.

I'd like for there to be two additional options:
1) When the variable is empty. (e.g. //!!)
2) When the value is not found, but there is a value in the variable. (e.g. //?!))

Example Use Case:
I typically adjust my caption based on whether there's a Location value set.

So my hotcode would look like:
Code: [Select]
//== {location}
//## caption
//?! {event} at {location} in {city}, {state} on {date}
//!! {event} in {city}, {state} on {date}

Caveat: This could get weird for hotcode lists that check multiple variables? But I suppose it could be on the user to account for that situation.