Jump to content

Making a rule so it's not case sensitive


Recommended Posts

Here's the challenge. If the person at office A, is the same person at office B, then return something else.

 

Here's my wish. I want my rule below to work when Office A is Mike and Office B is MIKE. I want Mike = MIKE. Thanks!

 

if (Field("RespondentName") == Field("HeadName"))

{

return "<span>" + TaggedDataField("HeadAgencySur");

}

else

{

return "<span>" + TaggedDataField("HeadName") + "</span>";

}

return "";

Link to comment
Share on other sites

Just convert both to all lowercase in the condition:

if (ToLower(Field("RespondentName")) == ToLower(Field("HeadName")))
{
return "<span>" + TaggedDataField("HeadAgencySur");
}
else
{
return "<span>" + TaggedDataField("HeadName") + "</span>";
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...