# If (multiple conditions?) {

**URL:** <https://forum.kirupa.com/t/if-multiple-conditions/115969>\
**Category:** Uncategorized\
**Created:** [July 13, 2004, 2:39pm UTC](https://forum.kirupa.com/t/if-multiple-conditions/115969 "2004-07-13T14:39:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChillinTheMost](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/chillinthemost/32/330_2.png) [@ChillinTheMost](https://forum.kirupa.com/u/ChillinTheMost)\
**Post date:** [July 13, 2004, 2:39pm UTC](https://forum.kirupa.com/t/if-multiple-conditions/115969/1 "2004-07-13T14:39:15Z")

</div>

I’ve got a zoomable map within a frame, and of course I don’t want it to be dragged out of view, right?

So, how do I set the startDrag (L,T,R,B) parameters when it’s a different size when it’s enlarged (zoomed)?

Would it be advisable to somehow set multiple conditions to do something like this? (if so, how would I do it?)

[FONT=Courier New]  
if ( between Size\>100 AND Size\<200) {  
startDrag(this, false,400,150,600,250);  
}  
if ( between Size\>200 AND Size\<400) {  
startDrag(this, false,500,250,500,150);  
}  
[/FONT]

Would it be advisable to do something like that? If so, how would I code it?  
If not, what would be a better idea?

…I swear, adding this zoom feature added a whole level of complexity to this map that I’ve never imagined. PLEASE HELP!

ThanX!
