Announcement

Collapse
No announcement yet.

Syntax Needed for Category Prefix

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Syntax Needed for Category Prefix

    Hi,

    I wanted change the following:
    <mvt:if expr="l.settings:category:code CIN 'PST_FOP'">

    to use the category prefix PST intead of the full category code. Basically, if the category prefix EQ 'PST' then . . .

    Just not sure of the syntax to use for the category prefix. This works for me know but I have 30+ categories and thought using the prefix will eliminate doing this 30+ times.


    Thanks in advance,
    Mike

    #2
    Re: Syntax Needed for Category Prefix

    Just in case this makes more sense I tried the following but it isn't working so I am assuming I don't have the syntax correct for the prefix.

    <mvt:if expr="g.catpre EQ 'PST'">

    Comment


      #3
      Re: Syntax Needed for Category Prefix

      Try:

      Code:
      <mvt:if expr="'PST_' CIN l.settings:category:code">
      do this
      </mvt:if>
      Last edited by nottheusual1; 04-12-12, 05:59 AM.

      Comment


        #4
        Re: Syntax Needed for Category Prefix

        Perfect, that worked!

        Thanks so much,
        Mike

        Comment

        Working...
        X