RSS Feed/News Syntax error in if statement... can't work it out.

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
20,420
Points
823

Reputation:

Checking for existence of a custom profile field, and that the field is not a certain value:

<xf:if is="$xf.visitor.Profile.custom_fields.afl_club" && !is="$xf.visitor.Profile.custom_fields.afl_club == 'tasmania'">

Saving the template I get a syntax error message but no detail on what the problem is.

Deleting all but this if /if gives the same error so it's not other code in the template.

Have used IF statements many times in the past, and this custom profile field is referenced in the...

Read more

Continue reading...
 
Status
Not open for further replies.
Top