Hi,
How do I check in UiStudio if the 1st letter in a User Input (from an Input Dialog activity) is a capital letter? I have a sample program I’m creating with a flow decision module, but am unsure of what to write in the condition.
Thanks.
Hi,
How do I check in UiStudio if the 1st letter in a User Input (from an Input Dialog activity) is a capital letter? I have a sample program I’m creating with a flow decision module, but am unsure of what to write in the condition.
Thanks.
Let’s do one things
Your input be like
Str_input = “Abch”
Then to check whether the first letter is caps or not
In if condition like this
Str_input.Substring(0,1).ToString.Equals(Str_input.Substring(0,1).ToUpper.ToString)
If true it will go to THEN part of if condition
Cheers @Divik
@Palaniyappan
Thanks.
I was able to do it. Actually I saved the User Input into a variable called userInput.
Then using your logic, I was able to complete it using the following condition:
userInput.Substring(0,1).ToString.Equals(userInput.Substring(0,1).ToUpper.ToString)
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.