Forum Topic - Conditional SSI expression with slinger webserver: (4 Items)
   
Conditional SSI expression with slinger webserver  
I try show individual HTML text depending on the system variable SYSTEM_NAME. Therefore I use an expression like <!--#if
 "SERVER_NAME" hasstring "S" printbreak "<P>Test." -->
Problem is that the name SERVER_NAME seems to be interpreted as a string itself. I would rather have the content of the 
environment variable SYSTEM_NAME compared to my test string. Omitting " " won't help. Any suggestions?
Re: Conditional SSI expression with slinger webserver  
I believe you need to enclose with &&, as in  "&&SYSTEM_NAME&&".

However, I can't find an anything called SYSTEM_NAME in SSI. There is 
SERVER_NAME but not SYSTEM_NAME AFAICT...

Anyways, hope this helps...
/P

On 10/05/10 10:16 AM, Gunnar Piel wrote:
> I try show individual HTML text depending on the system variable SYSTEM_NAME. 
Therefore I use an expression like<!--#if "SERVER_NAME" hasstring "S" printbreak "<P>Test." -->
> Problem is that the name SERVER_NAME seems to be interpreted as a string itself. I would rather have the content of 
the environment variable SYSTEM_NAME compared to my test string. Omitting " " won't help. Any suggestions?
>
>
>
> _______________________________________________
>
> Technology
> http://community.qnx.com/sf/go/post54059
>
>    
Re: Conditional SSI expression with slinger webserver  
This works! And yes, I ment SERVER_NAME. Thanks!
Re: Conditional SSI expression with slinger webserver  
Great to hear that it worked :-)

> This works! And yes, I ment SERVER_NAME. Thanks!