Announcement

Collapse
No announcement yet.

Ifdef?

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

    Ifdef?

    I haven't done my homework yet and I haven't had to chance to try:

    mvc -D MYDEFINSTANCE mymivascriptcode .mv
    This works for

    Code:
    <MvIFDEF NAME="MYDEFINSTANCE">
    ...my code...    
    </MvIFDEF>
    I'm looking to use multiple though. Possible?
    Something like:

    mvc -D MYDEFINSTANCE1,MYDEFINSTANCE2 mymivascriptcode .mv
    Code:
    <MvIFDEF NAME="MYDEFINSTANCE1">
    ...my code...    
    </MvIFDEF>
    
    <MvIFDEF NAME="MYDEFINSTANCE2">
    ...my code...    
    </MvIFDEF>
    Thanks,

    Scott
    Last edited by ids; 08-16-18, 09:45 PM.
    Need to offer Shipping Insurance?
    Interactive Design Solutions https://www.myids.net
    MivaMerchant Business Partner | Certified MivaMerchant Web Developer
    Competitive Rates, Custom Modules and Integrations, Store Integration
    AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
    My T-shirt Collection is mostly MivaCon T-shirts!!

    #2
    Did some homework. From mivascript.com:

    mvc -D DEBUG [-D ANOTHER_SYMBOL] source.mv
    Does that translate to this?

    mvc -D MYDEFINSTANCE1 -D MYDEFINSTANCE2 mymivascriptcode.mv
    Or would the brackets be needed for every added symbol?

    mvc -D MYDEFINSTANCE1 [ -D MYDEFINSTANCE2 ] [ -D MYDEFINSTANCE3 ] mymivascriptcode .mv
    Scott
    Need to offer Shipping Insurance?
    Interactive Design Solutions https://www.myids.net
    MivaMerchant Business Partner | Certified MivaMerchant Web Developer
    Competitive Rates, Custom Modules and Integrations, Store Integration
    AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
    My T-shirt Collection is mostly MivaCon T-shirts!!

    Comment

    Working...
    X