Heya!
I've coded a small php template parser, so templates can be easily parsed, and the variables within the templates are like {variable_name}
e.g.
<title>{title}</title>
Can you suggest me possible if/else statement syntax?
I've thought of doing something like:
{if {logged_in}: TRUE}
You're logged in...
{else}
You're not...
{/if}
and...
{if {logged_in}: TRUE}
You're logged in...
{/if}
The above demonstrates basic if/else template syntax (it checks if the variable logged_in == true), but since I'm more of a coder then designer, was wondering if I can have your input (so designers can easily understand the syntax without knowledge of server-side coding).
Cheers!