# \#c-syntax

**URL:** https://forum.plexim.com/tag/c-syntax/669.md

[Latest](https://forum.plexim.com/latest.md) · [Categories](https://forum.plexim.com/categories.md) · [Tags](https://forum.plexim.com/tags.md)

---

## [Syntax for writing functions in function blocks](https://forum.plexim.com/t/syntax-for-writing-functions-in-function-blocks/1385)

<div class="topic-metadata">

**Author:** [@JuanMa\_277](https://forum.plexim.com/u/JuanMa_277)\
**Replies:** 4\
**Last updated:** [August 16, 2024, 12:17pm UTC](https://forum.plexim.com/t/syntax-for-writing-functions-in-function-blocks/1385 "2024-08-16T12:17:56Z")

</div>

I would like to ask you about how to write functions in function blocks. The manual explains that it follows the C syntax. But it is not clear how. I want to use a function block to calculate the angle between variables…
