Open
Description
Using zero or null in a function as an optional output parameter results in the error "Cannot use a literal value as an output parameter". Such constructions as in the example below are used to avoid creating unnecessary variables if the output result is not important.
Example:
ulocate building core 1 @copper outx outy found1 building
ulocate building core 1 @copper outx outy found2 0
ulocate building core 1 @copper outx 0 found3 0
ulocate building core 1 @copper null null found4 null
ulocate building core 1 @copper outx outy null building
Metadata
Metadata
Assignees
Labels
No labels