How can we write if condition to check string1 matches string 2

we have string 1 and string2.
string1=is this student graduate or pg holder? graduate
string2=graduate
If string 1 is graduate we have to do some steps ,if string 1 is pg holder we have to do some steps.
How can we acheive this?can anyone help please?

string1.toUpper.Contains(string2.toUpper)
Or
string1.toUpper().Trim().EndsWith(string2.toUpper)

could be checked

How do to upper functions can u please explain?

we can harmonize for the check to upper cases with the toUpper() method

An If/Then or Switch.

If you’re not familiar with what these mean, then it’s time to go do the free UiPath training on their web site. These are very basic programming topics that should already be known before trying to write automations.

Ok.thanks for explaining