In TP template language. Both if and eq can be used to compare variables.
For example:
<if condition=”$id eq 1”>
Copy after login
This is no problem
But if you want to compare two variables:
<if condition=”$a.id eq $b_id”>
Copy after login
This will cause problems
Solution:
Use the
<eq name=”a.id” value=”$b.id”>
Copy after login
Note: There is no need to add the $ variable symbol to the name, but the $ variable symbol is required to the value.