# Execute Condition using PowerShell

**URL:** https://www.finalbuilder.com/forums/t/execute-condition-using-powershell/6692
**Category:** Discussion
**Created:** [January 13, 2020, 8:16pm UTC](https://www.finalbuilder.com/forums/t/execute-condition-using-powershell/6692 "2020-01-13T20:16:56Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![tomas.lundstrom](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/a5b964/32.png) [@tomas.lundstrom](https://www.finalbuilder.com/forums/u/tomas.lundstrom)
#### Post date: [January 13, 2020, 8:16pm UTC](https://www.finalbuilder.com/forums/t/execute-condition-using-powershell/6692/1 "2020-01-13T20:16:57Z")

</div>

Hi, I want to check for the existence of a folder before running a build step.  
I added a simple:  
Test-Path ‘C:\some\path’ which of course works as expected in a PowerShell.

However, in FinalBuilder 8, the condition always evaluates to True, regardless of the path provided.

Any Ideas?

Cheers,  
Tomas

---

_[View the full topic](https://www.finalbuilder.com/forums/t/execute-condition-using-powershell/6692)._
