# Exit program

**URL:** <https://forum.dynamobim.com/t/exit-program/19873>\
**Category:** Lists-Logic\
**Created:** [March 10, 2018, 12:03pm UTC](https://forum.dynamobim.com/t/exit-program/19873 "2018-03-10T12:03:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![til.shviger](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/til.shviger/32/36048_2.png) [@til.shviger](https://forum.dynamobim.com/u/til.shviger)\
**Post date:** [March 10, 2018, 12:03pm UTC](https://forum.dynamobim.com/t/exit-program/19873/1 "2018-03-10T12:03:23Z")

</div>

How can i exit from the

- python
- python in dynamo
- C# code (this need probably exit from application - not from programm)?

1.) _example for python code in dynamo - if list IN[0] is empty - exit programm or exit from code (its just try)_

`check_inn= **break** if not IN[0] else do it...`

2.)_or how apply GOTO in python for example_ (this need ignore/skip -this part of code - \> **do it…** )

```
check_inn= **goto label 1** if not IN[0] else do it...

do it...

label 1:

OUT="done"

```

------ but in python 2.7 we cannot use this : `from goto import with_goto`
