SSC-EWI-TD0087
GOTO statement was removed due to if statement inversion.
This EWI is deprecated, please refer to SSC-FDM-TD0026 documentation
Some parts in the output code are omitted for clarity reasons.
Severity
Medium
Description
It is common to use GOTO command with IF and LABEL commands to replicate the functionality of an SQL if statement. When used in this way, it is possible to transform them directly into an if, if-else, or even an if-elseif-else statement. However, in these cases, the GOTO commands become unnecessary and should be removed to prevent them from being replaced by a LABEL section.
Example Code
Input Code:
Output Code
Recommendations
If you need more support, you can email us at snowconvert-support@snowflake.com
Last updated