Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 if this AND this (how to?)
Niki Offline
Junior Member
**
Posts: 29
Joined: Oct 2016
Post: #1
if this AND this (how to?)
Hey hey,

Awesome plugin, has made my life so much better since discovering it.

I'm pushing my limits here and not sure if this is possible with this plugin but basically what I'm trying to do is say, if inbetween this and this display this.

I tried this but the page went blank.

PHP Code:
<if $userfields['fid43'] >= 26 AND <=50 then><div class="border board"><div class="health-bar-decent" style="width: {$userfields['fid43']}%; text-align: center;">{$userfields['fid43']}%</div></div></if>


In order to show the health-bar-decent color the input number for this userfield needs to be equal to or greater than 26 AND equal to or less than 50.

I'm stumped. Help is appreciated,
thanks!

02-22-2018 08:24 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #2
RE: if this AND this (how to?)

PHP Code:
<if $userfields['fid43'] >= 26 AND $userfields['fid43'] <=50 then>


http://www.php.net/manual/en/language.op...http://www.php.net/manual/en/language.operators.l


Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
(This post was last modified: 02-22-2018 01:48 PM by Sama34.)
02-22-2018 01:45 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Niki Offline
Junior Member
**
Posts: 29
Joined: Oct 2016
Post: #3
RE: if this AND this (how to?)
Thanks a bunch!
03-09-2018 09:04 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: