Cannot get If/Else node to work

Hello,

I am trying to get an if/else node to route users to a 3rd grade lesson agent or a 4th grade lesson agent, depending on the user’s grade. I have created a start node, where I have created a string variable called “grade.” In the if/else node, I have tried every combination imaginable (I am using straight quotes):

grade == “3”

variables.grade == “3”

input[“grade”] == “3” (I tried this with the variable grade being styled as string or as number)

state.grade == “3”

input.grade == “3” (I tried this with the variable grade being styled as string or as number)

workflow.input_as_text == “3”

The last one creates valid pathways but it doesnt work. The others either create invalid pathways or gives me an error message that indicates it does not see “grade” as a variable, which I don’t get. What am I doing wrong?

1 Like