# Hiding cards when placing & global options

**URL:** <https://forum.vassalengine.org/t/hiding-cards-when-placing-global-options/5782>\
**Category:** Technical Support & Bugs\
**Created:** [March 6, 2013, 11:23am UTC](https://forum.vassalengine.org/t/hiding-cards-when-placing-global-options/5782 "2013-03-06T11:23:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonas](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@Jonas](https://forum.vassalengine.org/u/Jonas)\
**Post date:** [March 6, 2013, 11:23am UTC](https://forum.vassalengine.org/t/hiding-cards-when-placing-global-options/5782/1 "2013-03-06T11:23:26Z")

</div>

I want to automatically hide cards when placing on a special location. This works already works using a trigger action.  
My next step is to add a global option to enable/disable this feature. This is done via a checkbox preference.  
Then I changed the trigger property to:

```auto
{(Obscured == false) && (hiddenCards)}
```

and it stops working even if hiddenCards has been selected in the preferences.  
What is the correct statement?

Thanks

---

<div class="post-metadata">

**Author:** ![Tim\_M](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/tim_m/32/2_2.png) [@Tim\_M](https://forum.vassalengine.org/u/Tim_M)\
**Post date:** [March 6, 2013, 12:15pm UTC](https://forum.vassalengine.org/t/hiding-cards-when-placing-global-options/5782/2 "2013-03-06T12:15:47Z")

</div>

What is the value of hiddenCards supposed to be? True? False?

You are not telling it in the expression. A checkbox has to be one or the  
other

-----Original Message-----  
From: [messages-bounces@vassalengine.org](mailto:messages-bounces@vassalengine.org)  
[[mailto:messages-bounces@vassalengine.org](mailto:messages-bounces@vassalengine.org)] On Behalf Of Jonas-  
Sent: Wednesday, March 06, 2013 5:23 AM  
To: [messages@vassalengine.org](mailto:messages@vassalengine.org)  
Subject: [messages] [Technical Support & Bugs] Hiding cards when placing &  
global options

I want to automatically hide cards when placing on a special location.  
This works already works using a trigger action.  
My next step is to add a global option to enable/disable this feature.  
This is done via a checkbox preference.  
Then I changed the trigger property to:

Code:  
{(Obscured == false) && (hiddenCards)}

and it stops working even if hiddenCards has been selected in the  
preferences.  
What is the correct statement?

Thanks

* * *

Read this topic online here:  
[https://forum.vassalengine.org/t/hiding-cards-when-placing-global-options/5782/1](https://forum.vassalengine.org/t/hiding-cards-when-placing-global-options/5782/1)

---

<div class="post-metadata">

**Author:** ![Jonas](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@Jonas](https://forum.vassalengine.org/u/Jonas)\
**Post date:** [March 6, 2013, 12:32pm UTC](https://forum.vassalengine.org/t/hiding-cards-when-placing-global-options/5782/3 "2013-03-06T12:32:54Z")

</div>

Thanks for your reply.  
I thought I’ve tested it, but seems like I made an error in the statement at that time.  
Using

```auto
{(Obscured == false) && (hiddenCards == true)}
```

works.  
Is there any documentation on the scripting language since some behaviour like the evaluation of boolean values is a little different to that what I’m used to be.

---

<div class="post-metadata">

**Author:** ![Tim\_M](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/tim_m/32/2_2.png) [@Tim\_M](https://forum.vassalengine.org/u/Tim_M)\
**Post date:** [March 6, 2013, 1:36pm UTC](https://forum.vassalengine.org/t/hiding-cards-when-placing-global-options/5782/4 "2013-03-06T13:36:30Z")

</div>

The most complete documentation to date would be the designers guide. check the properties section

[http://www.vassalengine.org/mediawiki/images/b/b0/Vassal\_3.1\_designerguide.pdf](http://www.vassalengine.org/mediawiki/images/b/b0/Vassal_3.1_designerguide.pdf)
