The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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.
     
    #1 RSimoes, Apr 19, 2010
    Last edited: Apr 19, 2010
  2. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

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

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

    Many Thanks,
    -Dave
     
  3. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Documentation should now be up-to-date!
     
Loading...
Similar Threads - Documentation correction <cpanelif>
  1. cPSarah
    Replies:
    6
    Views:
    2,490

Share This Page