Hi,
I’m having a problem with tags.
A skill can have up to 7 tags, each listing one main statistic that can be used for a test.
For example you pick a lock with finesse, fine manipulation, or with a different skill jump using martial (strength)
Now I have tagged the skills with the appropriate tag, pick lock has finesse and jump has martial for example.
I have made a table to list all skills, a short description and 7 columns each for a different stat.
What I want is a simple Yes if the skill has that tag.
But I’m having trouble getting the expression right.
I have tried it with an if statement but I’m missing something.
<style>
table, th, td {border: 3px solid; color: blue; text-align: center;
}
</style>
<div style= "overflow-x: auto;">
<table>
<tr>
<th>Skill</th>
<th>Description</th>
<th>Martial</th>
<th>Finesse</th>
<th>Primal</th>
<th>Mundane</th>
<th>Arcane</th>
<th>Divine</th>
<th>Musical</th>
</tr>
<$list filter= "[tag[Skills]]">
<tr>
<td><$link><$text text={{{ [{!!title}removeprefix[Z-]] }}}/></$link></td><td>{{!!description}}</td><td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td><% if Musical +[tagging[]] %> Yes <% endif %></td>
</tr>
</$list>
</table>
</div>
Edit: <% if Musical+[tagging[]] %> Yes <% endif %>
Is the part in question.
Any idea what goes wrong here? I tried it with the last field, Musical.
2 skills should have it, 2 others shouldn’t, but all give yes results.