I have created two custom profile fields.
the first one includes 20 teams and the user can choose only one
the second has also 20 teams and the user can choose only one.
This is my code :
Code:
<if condition="$post['field11']"><div class="CommUserInfo">team : $post[field11] , $post[field12]</div></if>
The problem with my code is that it always puts the comma , I want it to add the comma only if the user chooses two teams ( one from each group) , while if the user chooses only one team , it does not add the comma.