There are a number of problems:
-
You can’t use a ternary operator in associative DesignScript blocks. You need to declare a Imperative block instead. This applies to any if statement
-
Ternary operators currently don’t work in Imperative definitions anyway, the bug has been reported on Dynamo GitHub, so you need to use an if statement block instead
-
You have typo’s. ‘
s
’ and ‘S
’ are two different objects -
More typo’s:
input2
and8input2
-
missing a binary operator here (i assume you meant to multiply hence the typo of ‘8’?):
(input1-8)(input2)
Check out the Dynamo DesignScript intro here