Have an idea?

Different question text conditional on CBC task number

Hi there
I'm trying to use the CBCCURRENTTASK function to have an introductory header on my first CBC task and then slightly different wording for all of the others. However, I can't get the code to work.

1 Answer

0 votes

Best answer

There are some technical limitations with what can be done with CBCCurrentTask and similar functions in Sawtooth Script. In situations like this, it may be easier use Sawtooth Script to pass the task number to JavaScript and then do the operations in JS.