# Action conditions in GUI vs CMD mode behave differently!

**URL:** https://www.finalbuilder.com/forums/t/action-conditions-in-gui-vs-cmd-mode-behave-differently/329
**Category:** Discussion
**Created:** [January 24, 2007, 4:15am UTC](https://www.finalbuilder.com/forums/t/action-conditions-in-gui-vs-cmd-mode-behave-differently/329 "2007-01-24T04:15:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nirsilgi](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/a6a055/32.png) [@nirsilgi](https://www.finalbuilder.com/forums/u/nirsilgi)
#### Post date: [January 24, 2007, 4:15am UTC](https://www.finalbuilder.com/forums/t/action-conditions-in-gui-vs-cmd-mode-behave-differently/329/1 "2007-01-24T04:15:47Z")

</div>

Hi,  
  
I'm trying to run the same build from the GUI and sometimes from FBCMD. I see some behavioral differences when it comes to evaluating action conditions.  
  
For example if I have in one action group condition:  
BUILDSORTER = True  
  
if I click it in the Multiquestion dialog in the GUI it is set to true and everything's ok.  
if I pass /VBUILDSORTER=True to FBCMD it will be skipped  
if I pass /VBUILDSORTER=1 to FBCMD it is skipped  
  
When I write BUILDSORTER in the action condition (my usual way)  
if I pass /VBUILDSORTER=True to FBCMD it will work ok BUT if I don't pass anything (if I don't want to build sorter) then the condition fails and all the project with it  
 ------------------------------------------------------  
 Error In Execute Condition (VBScript)  
 Sorter : Invalid argument  
 This Action did not execute.  
 ------------------------------------------------------  
(Sorter is the name of the action group on which the condition works)  
  
So basically, I can't find a way in which both the GUI and CMD builds evaluates the condition in the same way.  
  
  
Please help   
Thanks,  
  
NirS

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [January 25, 2007, 12:59pm UTC](https://www.finalbuilder.com/forums/t/action-conditions-in-gui-vs-cmd-mode-behave-differently/329/2 "2007-01-25T12:59:10Z")

</div>

Hi Nir,  
  
It may be that you need to set the default value of the variable to False (rather than blank), but at the moment a blank value works fine for us here. VBScript is pretty forgiving about types.  
  
Which FinalBuilder version are you using? Would it be possible for you to please send the project file to [support@finalbuilder.com](mailto:support@finalbuilder.com)?  
  
Regards,  
  
Angus

---

<div class="post-metadata">

### Author: ![nirsilgi](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/a6a055/32.png) [@nirsilgi](https://www.finalbuilder.com/forums/u/nirsilgi)
#### Post date: [January 26, 2007, 4:45am UTC](https://www.finalbuilder.com/forums/t/action-conditions-in-gui-vs-cmd-mode-behave-differently/329/3 "2007-01-26T04:45:16Z")

</div>

OK I set all the variables to false by default, and it works fine now.  
  
Thanks,  
NirS
