# Simple Maths not seeing local variables defined in parent Action Group if below or within Fileset Iterator

**URL:** https://www.finalbuilder.com/forums/t/simple-maths-not-seeing-local-variables-defined-in-parent-action-group-if-below-or-within-fileset-iterator/3469
**Category:** Bugs
**Created:** [March 1, 2013, 2:45am UTC](https://www.finalbuilder.com/forums/t/simple-maths-not-seeing-local-variables-defined-in-parent-action-group-if-below-or-within-fileset-iterator/3469 "2013-03-01T02:45:46Z")
**Posts on this page:** 2
**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 1, 2013, 2:45am UTC](https://www.finalbuilder.com/forums/t/simple-maths-not-seeing-local-variables-defined-in-parent-action-group-if-below-or-within-fileset-iterator/3469/1 "2013-03-01T02:45:46Z")

</div>

FinalBuilder v7.0.0.2056   
 OS: Windows Server 2008 R2 SP1 (64-bit)   
  
 The subject says it all, when trying to use the “Simple Maths” action, if the action appears below or within a File/Fileset Iterator my local variables are not seen by the Simple Maths UI. If I move it above the iterator, I can then select my local variables. The same is also happening with SetVariable, so it might be more widespread. To workaround, I must move the action above the iterator, select my local variables, them move the action back to its desired location. Strangely, I am then able to edit the action and even select different local variables that were invisible.   
  
  
 ActionGroup   
 -FileIterator   
 --ReadXmlValueToVarialbe1   
 --ReadXmlValueToVariable2   
 --SimpleMaths   
  
 While I have your ear, it would be nice if Simple Maths added an operation for “x / y \* 100” for stuffing a percent calculation into an integer in one step (instead of defining a single and doing two operations: x/y and x\*y where y=100).

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [March 8, 2013, 12:45pm UTC](https://www.finalbuilder.com/forums/t/simple-maths-not-seeing-local-variables-defined-in-parent-action-group-if-below-or-within-fileset-iterator/3469/2 "2013-03-08T12:45:07Z")

</div>

I’m not able to reproduce this here in a simple test. I have attached the sample I used.
