PHP Classes

File: examples/views/Test3/customif.blade.php

Recommend this page to a friend!
  Classes of Jorge Castro   BladeOne   examples/views/Test3/customif.blade.php   Download  
File: examples/views/Test3/customif.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: BladeOne
Standalone template engine that compiles into PHP
Author: By
Last change: Update of examples/views/Test3/customif.blade.php
Date: 4 years ago
Size: 655 bytes
 

Contents

Class file image Download
<h1>Custom If </h1>
<h2>Check if $i={{$i}} is negative</h2>
@isnegative($i)
// $i is negative
@elseisnegative(-$i)
// $i is not negative
@else
// Is is anything
@endisnegative
<h2>Check if $e={{$e}} is negative</h2>
@isnegative($e)
// $e is negative
@elseisnegative(-$e)
// $e is not negative
@else
// Is is anything
@endisnegative
<h2>Check if $i={{$i}} is equals to 5</h2>
@isequals($i,5)
// $i is equals to 5
@elseisequals($i,3)
// $i is equals to 3
@else
// $is is not 5 nor 3
@endisequals
<h2>Check if $e={{$e}} is equals to 5</h2>
@isequals($e,5)
// $e is equals to 5
@elseisequals($e,3)
// $e is equals to 3
@else
// $e is not 5 nor 3
@endisequals