CFD Online URL
[Sponsors]
Home > Forums > CFX

Boolean with a string

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 13, 2013, 11:04
Default Boolean with a string
  #1
New Member
 
Mickael
Join Date: Apr 2013
Posts: 8
Rep Power: 3
Leackim is on a distinguished road
Hi,

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"){
! $INTERSEC=1;
!}



(BOTTOM_TOP is a string)

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


Thanks
Leackim is offline   Reply With Quote

Old   May 13, 2013, 18:47
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 9,859
Rep Power: 78
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
This is basic perl syntax - see http://perlmeme.org/howtos/syntax/comparing_values.html for details and the way to do it.
ghorrocks is offline   Reply With Quote

Reply

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
[ansys fluent] problems of running ANSYS 12.1 fluent module mkwang2006 FLUENT 3 September 30, 2013 11:59
FLUENT not running CFDFRED ANSYS 3 September 30, 2013 11:31
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 02:32
CFX4.3 -build analysis form Chie Min CFX 5 July 13, 2001 00:19


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