How to convert Formula block into input?

I have this automatic pipe sizing dynamo script. I want to use this in dynamo player but there is no option to make the Formula block(If statement) to become an input? So that I can just change the value p=of the IF statement formula in dynamo Player. Thanks


Make P a variable in your Code block, use a Number Block to give P tot the Code Block. Make the Number Block the Input.

If you want to show the entire formula, have it in a Watch Node set to output.

Can you write the formula? I am having hard time searching in the code block.thanks

I mange to use the code block and its working but I cannot show it as input in dynamo player?