Just needed a help to make a condition, as my is not working perfectly.
consider a text :- 07_ANP_BMCC
Suppose this is a string, then i want to make a condition in which i want to check that the string starts with a numeric and has either a “Space” or a “_” after first two characters .
in your If statement. This will give you a true value if the string matches your pattern, or false if it doesn’t.
If you want to learn more about the expression I’ve made a demo on regexr showing how it works.
Thanks @Palaniyappan and @jfarnden for the reply. Was thinking if you can help me with a condition to check , a row variable is empty. I was using IsNothing(row(“text”).toString) and the particular cell is empty also then also this condition is returning nothing.
Please help
If the String is “” (blank/empty) technically it’s still something to the computer, so IsNothing doesn’t work great for strings like this. Check out IsNullOrWhiteSpace and IsNullOrEmpty, as i expect one of these will fit your scenario better.
IsNullOrEmpty will check for a null or an empty string (“”).
IsNullOrWhitespace will also check if they have entered blank spaces like " ".
You were almost done
The expression be like this in IF condition String.IsNullOrEmpty(row(“text”).ToString.Trim)
If true it goes to THEN part which means the row has empty value in it or goes to ELSE part which means it has some value in it