Announcement

Collapse
No announcement yet.

This isn't working...how do I?

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

  • This isn't working...how do I?



    Hello,

    %if(%var|g.hcode1%)% %else% %var|g.hcode2% %ifend%

    Here's the result:

    %if(8th codeµ¶ %else% 7th it is %ifend%

    So, hcode 1 and 2 are populated with a value.

    if g.hcode1 is null I need to display g.hcode2 in an OUI INVC header.
    How do I fix this?

    TIA

    --
    Best regards,
    Scott
    mailto:[email protected]




  • This isn't working...how do I?



    %IF(g.hcode1)%
    %VAR(g.hcode1)%
    %ELSE%
    %VAR(g.hcode2)%
    %IFEND%


    Jerry Pe=F1a
    President, P.R.Custom.com
    Custom Technology-Based Business Solutions
    Phone: (310) 531-9235 Fax: (310) 388-1083

    -----Original Message-----
    From: [email protected] =
    [mailto:[email protected]]
    On Behalf Of Scott Shepard
    Sent: Friday, April 22, 2005 1:38 AM
    To: [email protected]
    Subject: [mrc] This isn't working...how do I?

    Hello,

    %if(%var|g.hcode1%)% %else% %var|g.hcode2% %ifend%

    Here's the result:

    %if(8th code=B5=B6 %else% 7th it is %ifend%

    So, hcode 1 and 2 are populated with a value.

    if g.hcode1 is null I need to display g.hcode2 in an OUI INVC header.
    How do I fix this?

    TIA

    --=20
    Best regards,
    Scott =20
    mailto:[email protected]



    Comment


    • Re[2]: This isn't working...how do I?



      Alas,

      Something basic, which IMO, isn't necessarily obvious in the docs.
      Maybe I've just missed it somewhere. Maybe just seeing a little
      cross-eyed because MivaScript doesn't care about case -- where i spend
      most of time.

      This won't work:

      %if(g.hcode1)%
      %var(g.hcode1)%
      %else%
      %var(g.hcode2)%
      %ifend%

      This does work:

      %IF(g.hcode1)%
      %VAR(g.hcode1)%
      %ELSE%
      %VAR(g.hcode2)%
      %IFEND%


      Scott
      IDS

      Friday, April 22, 2005, 9:43:11 AM, you wrote:

      ML> %IF(g.hcode1)%
      ML> %VAR(g.hcode1)%
      ML> %ELSE%
      ML> %VAR(g.hcode2)%
      ML> %IFEND%


      ML> Jerry Peńa
      ML> President, P.R.Custom.com
      ML> Custom Technology-Based Business Solutions
      ML> Phone: (310) 531-9235 Fax: (310) 388-1083

      ML> -----Original Message-----
      ML> From: [email protected] [mailto:[email protected]]
      ML> On Behalf Of Scott Shepard
      ML> Sent: Friday, April 22, 2005 1:38 AM
      ML> To: [email protected]
      ML> Subject: [mrc] This isn't working...how do I?

      ML> Hello,

      ML> %if(%var|g.hcode1%)% %else% %var|g.hcode2% %ifend%

      ML> Here's the result:

      ML> %if(8th codeµ¶ %else% 7th it is %ifend%

      ML> So, hcode 1 and 2 are populated with a value.

      ML> if g.hcode1 is null I need to display g.hcode2 in an OUI INVC header.
      ML> How do I fix this?

      ML> TIA




      --
      Best regards,
      Scott
      mailto:[email protected]



      Comment

      Working...
      X

      This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

      This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

      Accept