# \#c

**URL:** https://forum.plexim.com/tag/c/53.md

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

---

## [C-Script syntax types](https://forum.plexim.com/t/c-script-syntax-types/1304)

<div class="topic-metadata">

**Author:** [@Rodrigo](https://forum.plexim.com/u/Rodrigo)\
**Replies:** 1\
**Last updated:** [January 12, 2024, 11:15am UTC](https://forum.plexim.com/t/c-script-syntax-types/1304 "2024-01-12T11:15:14Z")

</div>

I am starting to program in C script block and I have questions: When defining a variable in ‘code declarations,’ why are there two syntax types? For example, this: ‘define PREV\_INPUT DiscState(0)’ and the other syntax …

---

## [Please I need this on c-script](https://forum.plexim.com/t/please-i-need-this-on-c-script/1297)

<div class="topic-metadata">

**Author:** [@Awesome](https://forum.plexim.com/u/Awesome)\
**Replies:** 1\
**Last updated:** [December 6, 2023, 1:33pm UTC](https://forum.plexim.com/t/please-i-need-this-on-c-script/1297 "2023-12-06T13:33:48Z")

</div>

Please I need this function on plecs c script, please I did not get it. Here it is function \[ma, mb\] = fcn(u, t, theta, f) ma = usin(2pift+(theta\*pi/180)); mb = usin(2pift+pi+(theta\*pi/180));
