Jump to content

Keep function returning ZERO value

Recommended Posts

My keep function in advanced training does not work and only returns a ZERO. Below is the code an the image.

$Grade106 = $gcwp.keep('Grade Code',
     isEqualTo('Grade 106'))
$Grade107 = $gcwp.keep("Grade Code",
     isEqualTo("Grade 107"))
$Grade108 = $gcwp.keep("Grade Code",
     isEqualTo("Grade 108"))



Link to comment
Share on other sites

  • Seeq Team


Be careful to two things:

  • When you create the condition, make sure you name your property correctly:
$signal.toCondition('Grade Code')
  • Then pay attention to single and double quotes:
$condition.keep('Grade Code', isEqualTo('Grade 106'))

Let me know if this helpful.

Link to comment
Share on other sites

Thank you. My confusion is that I'm following along line by line in the training video and the formulas are identical. I didn't see any instructions in the training to use the "toCondition" function. I'll give it a try.

Link to comment
Share on other sites

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...