Hi everyone,
I would like to know how to do string comparison as a condition for if statement
for instance, i have a block with a string input (S) and it is being fed by either "sdfr23rdf34x23fsfdr" or "wedq23asd44x344dfd" and i would like to do the following
if (S == "sdfr23rdf34x23fsfdr")
.....
elsif (S=="wedq23asd44x344dfd")
..
end if;
could someone please help me about how to do such a comparison.
I would like to know how to do string comparison as a condition for if statement
for instance, i have a block with a string input (S) and it is being fed by either "sdfr23rdf34x23fsfdr" or "wedq23asd44x344dfd" and i would like to do the following
if (S == "sdfr23rdf34x23fsfdr")
.....
elsif (S=="wedq23asd44x344dfd")
..
end if;
could someone please help me about how to do such a comparison.