I have a string that is returned from an api call , the string is something like
".controllersmyaction c:testpath"
I want to use Powershell to check if the string contains c:
How can i do this ?
I have tried the following:
if $result is populated with the string above then i do
if ($result.context.ToLower().Contains("c:") -eq "True")
{
#code here
}
how can i do this ?
New contributor
Kate is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2