CFD Online Discussion Forums

CFD Online Discussion Forums (
-   CFX (
-   -   Boolean with a string (

Leackim May 13, 2013 10:04

Boolean with a string

After some research i didn't find any answer about my questions. I would like to use Boolean "==" with a string.
I tried it in my file :

! if ($BOTTOM_TOP=="X"){

(BOTTOM_TOP is a string)

But it appears that PERL can't make it. Is there any way to achieve it ?


ghorrocks May 13, 2013 17:47

This is basic perl syntax - see for details and the way to do it.

All times are GMT -4. The time now is 21:01.