TerminalAddict
Active member
here's the setup:
I'm doing this (which works):
the result is, if the identity "steam" exists, then a div is printed; if it doesn't exist, nothing happens
what I would like to do is
obviously this is not xen templating
can this be done ?
in plain english:
if the key "Steam" does not exist, then print some plain text.
I'm doing this (which works):
Code:
<xen:foreach loop="{$user.identities}" key="$service1" value="$account1">
<xen:if is="{$service1} == 'Steam'">
<div class="steamprofile" title="{$account1}"></div>
</xen:if>
what I would like to do is
Code:
if (!in_array("Steam', $user.identities) {
echo "What the? no steam?";
}
can this be done ?
in plain english:
if the key "Steam" does not exist, then print some plain text.