You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Possible to use #include inside #if?

Received Response
11
Views
5
Comments

Would like to create a set of conditional statements where certain files are included if the statements are true:

<#if $somevalue == true>

<!-- myfile -->

<#inclulde "myfile.html">

<#else>

<!-- default -->

<#include "anotherfile.html">

</#if>

I'm seeing the commented HTML <!-- myfile --> but the include statement isn't returning the file. Any suggestions?

Thanks,

Patrick

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!