Skip to Content Skip to Menu

If statement based on # of characters in field

12 years 3 months ago #204515 by marriage_minded_man
If statement based on # of characters in field was created by marriage_minded_man
I want to display something based on the number of digits in someones user ID.

Some users will have a user id with 3 digits and some with 4. I want to say, "If user ID is 3 digits long, display this" and "If user ID is 4 digits long, display this".

Is this possible?

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
12 years 3 months ago #204517 by nant

marriage_minded_man wrote: I want to display something based on the number of digits in someones user ID.

Some users will have a user id with 3 digits and some with 4. I want to say, "If user ID is 3 digits long, display this" and "If user ID is 4 digits long, display this".

Is this possible?


CB Query field to calculate the number of digits (SQL skills required).
Then Delimiter field using cb if substitutions.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum