# How to give two conditions in a while loop?

**URL:** https://www.finalbuilder.com/forums/t/how-to-give-two-conditions-in-a-while-loop/4352
**Category:** Discussion
**Created:** [February 25, 2009, 12:41pm UTC](https://www.finalbuilder.com/forums/t/how-to-give-two-conditions-in-a-while-loop/4352 "2009-02-25T12:41:15Z")
**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: [February 25, 2009, 12:41pm UTC](https://www.finalbuilder.com/forums/t/how-to-give-two-conditions-in-a-while-loop/4352/1 "2009-02-25T12:41:15Z")

</div>

Plz help me creeating a loop. I want to give two conditions to a while loop but it is not working.

I am writing in condition: %login% \< 11 && %log% = False

It is giving error that character is invalid. What sshould I type to give two conditions?

---

<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: [February 25, 2009, 1:32am UTC](https://www.finalbuilder.com/forums/t/how-to-give-two-conditions-in-a-while-loop/4352/2 "2009-02-25T01:32:26Z")

</div>

Anyone home.

---

<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: [February 26, 2009, 1:41am UTC](https://www.finalbuilder.com/forums/t/how-to-give-two-conditions-in-a-while-loop/4352/3 "2009-02-26T01:41:48Z")

</div>

Saeed, you are going to have to be more patient with us, we cannot always respond within an hour, we’re in Australia so it’s highly likely we are asleep when you post.   
  
 To answer your question, the Execute Condition is a Script (e.g) VBScript or JavaScript in Automise 2, AT3 has Powershell and Python as well. In script, you do not need to use the % symbols around Automise variables, as they are available as global variables in scripts.
