dalespivey Posted July 18, 2014 Share Posted July 18, 2014 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 ""; Quote Link to comment Share on other sites More sharing options...
step Posted July 18, 2014 Share Posted July 18, 2014 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>"; } Quote Link to comment Share on other sites More sharing options...
dalespivey Posted July 18, 2014 Author Share Posted July 18, 2014 And it works, Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.