Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Documentation correction: <cpanelif> examples

Discussion in 'cPanel Developers' started by RSimoes, Apr 19, 2010.

  1. RSimoes

    RSimoes Member
    PartnerNOC

    Joined:
    Oct 9, 2008
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    51
    Location:
    Austin, TX
    None of the examples shown at ExpVarRef < DeveloperResources < TWiki will work due to there being spaces between the operators and operands. E.g.:
    Code:
    <cpanelif 2 =ltet= 3>
    
    should be:
    Code:
    <cpanelif 2=ltet=3>
    
    The operators && and || are not documented, but, strangely enough, they work only IF you use spaces:
    Code:
    <cpanelif 1&&0>
    
    will not be parsed correctly, but:
    Code:
    <cpanelif 1 && 0>
    
    will be.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 RSimoes, Apr 19, 2010
    Last edited: Apr 19, 2010
  2. cPanelDavidN

    cPanelDavidN Integration Developer

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    RSimoes,

    Great find! I'll request that Documentation update the necessary documents.

    Many Thanks,
    -Dave
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelDavidN

    cPanelDavidN Integration Developer

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Documentation should now be up-to-date!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice