# Read Ini File action: set default via variable

**URL:** https://www.finalbuilder.com/forums/t/read-ini-file-action-set-default-via-variable/4145
**Category:** Feature Requests
**Created:** [March 19, 2011, 1:44am UTC](https://www.finalbuilder.com/forums/t/read-ini-file-action-set-default-via-variable/4145 "2011-03-19T01:44:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 19, 2011, 1:44am UTC](https://www.finalbuilder.com/forums/t/read-ini-file-action-set-default-via-variable/4145/1 "2011-03-19T01:44:38Z")

</div>

Please add the possibility to set the default value for a boolean value from a variable while reading from an ini file.

We use many scripts which share most of their settings. Therefore we would like to use two ini files: the first defines the global settings and is shared by all scripts. The second is specific to one script and override just the values which need to be tweaked. Unfortunatly this doesn't work for boolean variables as their default value can't be set with a variable.

Regards,

Karsten

![Boolean_Default.jpg](https://www.finalbuilder.com/forums/uploads/default/original/2X/0/09ae80f21050f7d5a7074c059daa69e54856d190.jpeg)

---

<div class="post-metadata">

### Author: ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)
#### Post date: [March 21, 2011, 6:14am UTC](https://www.finalbuilder.com/forums/t/read-ini-file-action-set-default-via-variable/4145/2 "2011-03-21T06:14:29Z")

</div>

Hi Karsten   
  
 You can do this by setting the Default Value property using the BeforeAction script event:

```auto
Action.DefaultValue = DefaultValueVariable

```

where DefaultValueVariable is a FinalBuilder variable containing a boolean value.   
  
 Regards,   
 Steve

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 22, 2011, 11:36am UTC](https://www.finalbuilder.com/forums/t/read-ini-file-action-set-default-via-variable/4145/3 "2011-03-22T11:36:09Z")

</div>

Hi Stephen,   
  
 thanks for your reply, i will try this approach.   
  
 Regards,   
 Karsten
