Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Dec 2007
    Posts
    20

    Default Cpanelif and logic operators

    I'm trying to use the cpanelif function to hide some things in my theme. Like this:

    <cpanelif $CPDATA{'MAXSQL'} =gtet= 1>
    Show something
    </cpanelif>

    That does not work. Any idea how I can use the logic operators?

  2. #2
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default

    Just curious if something like:

    Code:
    <cpanelif $CPDATA{'MAXSQL'}>
    Show something
    </cpanelif>
    would work. Since if $CPDATA{'MAXSQL'} is greater than or equal to 1 would return true. The only other value would be 0 which would return false.

  3. #3
    Member
    Join Date
    Dec 2007
    Posts
    20

    Default

    Actually my error was extra spaces. Without spaces it works.

Similar Threads & Tags
Similar threads

  1. Cpanelif and logic operators
    By manuki in forum Themes and Branding
    Replies: 1
    Last Post: 11-30-2009, 09:41 AM
  2. cpanelif
    By SNN in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-24-2007, 09:43 PM
  3. nameserver logic in CPanel
    By euroxsw in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-12-2003, 06:18 AM
  4. cpanelif...
    By powerhouse in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 10-17-2002, 03:42 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube