Is there a static property in Action similar to that in the String object in .net to check if a string is empty, that is String.Empty.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can simply do:
This works because the string is coerced to a boolean value using these rules:
String -> Boolean = “false if the value is null or the empty string ( “” ); true otherwise.”