Please enable JavaScript to view this site.

R:BASE 11 Help

Navigation: Function Index > I

IFCASEEQ

Scroll Prev Top Next More

(IFCASEEQ(arg1,arg2,arg3,arg4))

 

If the case and values for arg1 and arg2 are equal, IFCASEEQ returns the value of arg3. If the case and values for arg1 and arg2 are not equal, IFCASEEQ returns the value of arg4. The data types of arg1 and arg2 must match and the data types of arg3 and arg4 must match.

 

The function enables easier conformance for password verification, as a mixture of upper and lower case is a standard.

 

In the following example, the value for vCheckPW1 is NO.

 

SET VAR vCheckPW1 TEXT = (IFCASEEQ('SuperStrong1147','SUPERSTRONG1147','Yes','No'))

 

In the following example, the value for vCheckPW2 is TRUE.

 

SET VAR vCheckPW2 TEXT = (IFCASEEQ('LastOne','LastOne','True','False'))