Welcome Guest, Not a member yet? Register   Sign In
Parser and if statement
#1

Hi,

I use parser for sending data from controller into view, but don't know how to now make if statement in view.

If I have for example view like this:


Code:
<html>
<head>
<title>{blog_title}</title>
</head>
<body>

<h3>{blog_heading}</h3>

{blog_entries}

<h5>{title}</h5>

<p>{body}</p>

{/blog_entries}
</body>
</html>


How to write if statement for title? I wanna to check if title for example "Michael" to write in view "Michael is the best", and for all other records to write |Welcome".

Any help?
Reply


Messages In This Thread
Parser and if statement - by sasatozovic - 04-15-2016, 08:22 AM
RE: Parser and if statement - by gxgpet - 04-15-2016, 08:32 AM
RE: Parser and if statement - by sasatozovic - 04-15-2016, 08:41 AM
RE: Parser and if statement - by gxgpet - 04-15-2016, 08:46 AM
RE: Parser and if statement - by sasatozovic - 04-15-2016, 08:53 AM
RE: Parser and if statement - by gxgpet - 04-15-2016, 09:04 AM
RE: Parser and if statement - by sasatozovic - 04-15-2016, 09:10 AM
RE: Parser and if statement - by PaulD - 04-15-2016, 09:52 AM
RE: Parser and if statement - by sasatozovic - 04-15-2016, 10:16 AM
RE: Parser and if statement - by albertleao - 04-15-2016, 11:36 AM
RE: Parser and if statement - by dmyers - 04-15-2016, 11:03 AM
RE: Parser and if statement - by ivantcholakov - 04-15-2016, 11:35 AM
RE: Parser and if statement - by InsiteFX - 04-15-2016, 06:41 PM
RE: Parser and if statement - by sasatozovic - 04-16-2016, 04:22 AM
RE: Parser and if statement - by kilishan - 04-15-2016, 07:25 PM
RE: Parser and if statement - by sasatozovic - 04-16-2016, 04:07 AM
RE: Parser and if statement - by Tpojka - 04-16-2016, 06:45 AM
RE: Parser and if statement - by sasatozovic - 04-16-2016, 07:08 AM
RE: Parser and if statement - by InsiteFX - 04-16-2016, 10:53 AM
RE: Parser and if statement - by sasatozovic - 04-16-2016, 01:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB