A+B: Difference between revisions
→{{header|GDScript}}: Simplified to only do one line to properly match spec
(Add GDScript) |
(→{{header|GDScript}}: Simplified to only do one line to properly match spec) |
||
Line 2,918:
extends Node
@
set(value):
input = value # Save the input field
if len(fields) == 2: # Basic input validation
output = str(int(fields[0]) + int(fields[1]))
else: # Invalid input
▲ var parts := line.split(" ", false)
</syntaxhighlight>
|