CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Boolean with a string

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 13, 2013, 11:04
Default Boolean with a string
  #1
New Member
 
Mickael
Join Date: Apr 2013
Posts: 9
Rep Power: 13
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: 17,872
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
FLUENT not running CFDFRED ANSYS 5 April 20, 2017 01:53
[ansys fluent] problems of running ANSYS 12.1 fluent module mkwang2006 FLUENT 3 September 30, 2013 11: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 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 13:57.