Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6947 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

say i have a field with a number such as this

[color:red]12748a030827

i already have this being figured out. as far as what it means.

like this:

[color:blue]Let([

Issue = Middle(MyText;4;2);

Alpha = Middle(MyText;6;1);

Category = Case(Alpha = "a"; "Automotive"; Alpha = "b"; "Boat"; Alpha = "h"; "Home"; Alpha = "q"; "Internet"; Alpha = "t"; "Truck"; Alpha = "r"; "Bargain"; "");

TextToDisplay = Category & " " & "Ad Issue" & " " & Issue

];

TextToDisplay

)

this is not my problem this is my problem every now and again the number will change to something like this [color:red]#240084

well as you can tell this will not work with the script above all i want is this if the number doesn't start with a [color:red]1 i want it to display with what ever is its default value. [color:red]#240084

Edited by Guest
Posted

Hi

if I understood you correctly, this is pretty simple:

[color:blue]Let([

[color:red]firstChar = Left(MyText;1);

[color:blue]Issue = Middle(MyText;4;2);

Alpha = Middle(MyText;6;1);

Category = Case(Alpha = "a"; "Automotive"; Alpha = "b"; "Boat"; Alpha = "h"; "Home"; Alpha = "q"; "Internet"; Alpha = "t"; "Truck"; Alpha = "r"; "Bargain"; "");

TextToDisplay = Category & " " & "Ad Issue" & " " & Issue

];

[color:red]Case(

firstChar = 1;TextToDisplay;MyText

)

[color:blue])

Posted

Let([

firstChar = Left(MyText;1);

Issue = Middle(MyText;4;2);

Alpha = Middle(MyText;6;1);

Category = Case(Alpha = "a"; "Automotive"; Alpha = "b"; "Boat"; Alpha = "h"; "Home"; Alpha = "q"; "Internet"; Alpha = "t"; "Truck"; Alpha = "r"; "Bargain"; "");

TextToDisplay = Category & " " & "Ad Issue" & " " & Issue

];

Case(

firstChar = 1;TextToDisplay;

[color:red]firstChar = "#";MyText & " Paid Thank You";

MyText

)

)

This topic is 6947 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.