![]() |
[SOLVED] help : if conditional - Syntax error when saveing template [SOLVED]
Got a registered var, i get and want to check with if statment
to weither to show report link or not.. Howewer when trying to save this, i get unexspected , or unclosed tag.. so if the statment is 3 then no link is shown, how ewer any other value will show the link. Code:
<vb:if condition="({vb:raw moderated}, 3)"> condition=({vb:raw moderated}, 3)> didnt save at all. ;) EDIT + UPDATE : after re-reading this article -> https://vborg.vbsupport.ru/showthrea...ht=conditional I then tryed another cconditional Code:
<vb:if condition="{vb:raw moderated} == 3"> |
Code:
<vb:if condition="{vb:raw moderated} != 3"> |
Quote:
The following error occurred when attempting to evaluate this template: Parse error: syntax error, unexpected '{' in C:\xampp\xampp\htdocs\emod\includes\adminfunctions _template.php(4667) : eval()'d code on line 26 This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. using { inside the "" gives this error, howewer also tryed using ' ' instead of "" the problem is not getting the data to the template, the problem is saveing the template. |
You do not use the new syntax in conditions.
HTML Code:
<vb:if condition="$moderated == 3"> |
Quote:
|
All times are GMT. The time now is 09:40 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|