CFD Online Logo CFD Online URL
Home > Forums > CFX

Boolean with a string

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   May 13, 2013, 10:04
Default Boolean with a string
New Member
Join Date: Apr 2013
Posts: 9
Rep Power: 6
Leackim is on a distinguished road

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 ?

Leackim is offline   Reply With Quote

Old   May 13, 2013, 17:47
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 13,874
Rep Power: 107
ghorrocks is a jewel in the roughghorrocks is a jewel in the roughghorrocks is a jewel in the rough
This is basic perl syntax - see for details and the way to do it.
ghorrocks is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
FLUENT not running CFDFRED ANSYS 5 April 20, 2017 00:53
[ansys fluent] problems of running ANSYS 12.1 fluent module mkwang2006 FLUENT 3 September 30, 2013 10:59
Info message -> Fluent does not start Jenson FLUENT 0 December 22, 2011 18:21
Additional Command Language -in Workbench! Elvira_Coot CFX 11 July 14, 2011 01:32
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19

All times are GMT -4. The time now is 11:23.