# Func or Proc

**URL:** <https://tech-community.robotics.abb.com/t/func-or-proc/490>\
**Category:** Robot Controller\
**Created:** [October 11, 2005, 2:32pm UTC](https://tech-community.robotics.abb.com/t/func-or-proc/490 "2005-10-11T14:32:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xin-H](https://avatars.discourse-cdn.com/v4/letter/x/c4cdca/32.png) [@Xin-H](https://tech-community.robotics.abb.com/u/Xin-H)\
**Post date:** [October 11, 2005, 2:32pm UTC](https://tech-community.robotics.abb.com/t/func-or-proc/490/1 "2005-10-11T14:32:09Z")

</div>

Is there anybody kan tell me the difference between “Func” og “Proc”. when shall I choose what?

:star:

---

<div class="post-metadata">

**Author:** ![RussD](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@RussD](https://tech-community.robotics.abb.com/u/RussD)\
**Post date:** [October 11, 2005, 2:41pm UTC](https://tech-community.robotics.abb.com/t/func-or-proc/490/2 "2005-10-11T14:41:21Z")

</div>

A function returns a value to the caller when the function code is completed, while a procedure simply executes then returns control to the calling procedure.

---

<div class="post-metadata">

**Author:** ![Xin-H](https://avatars.discourse-cdn.com/v4/letter/x/c4cdca/32.png) [@Xin-H](https://tech-community.robotics.abb.com/u/Xin-H)\
**Post date:** [October 12, 2005, 9:12am UTC](https://tech-community.robotics.abb.com/t/func-or-proc/490/3 "2005-10-12T09:12:51Z")

</div>

thanks
