Jump to content

Recommended Posts

Posted (edited)

Hello everyone, 

I want to get the first value of signal within capsule. When I use getStart it returns

No variant of function 'toscalars' consumes the parameters (Signal, Condition) at 'toscalars'

Same with following function:

$signal.toscalars($capsule).first()

When I created capsule inside formula everything works fine:

$signal.toscalars(capsule(now() - 6y, now())).first()

Thanks

Edited by Tomasz
Posted

Hi Tomasz,

regarding the error message I assume you are passing a condition to the toScalars function instead of a capsule. If you want to have the first value of the capsule you can also use "Signal from Condition":

image.thumb.png.2f2c2629219748f2bc60c55207dde379.png

Regards,

Thorsten

  • Like 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...