question:
This works:
Code: Select all
if 1 then print "? " else print "2"
Code: Select all
if 1 then print "? ", else print "2"
if 1 then print "? "; else print "2"
test2.bas(2) error 4: Duplicated definition, else
if 1 then print "? ", else print "2"
^
test2.bas(3) error 4: Duplicated definition, else
if 1 then print "? "; else print "2"
^
I'm using:
FreeBASIC Compiler - Version 0.18.5 (04-17-2008) for win32 (target:win32)
Copyright (C) 2004-2008 The FreeBASIC development team.
Configured as standalone
Is this intentional behavior?
Note that I realize that I can convert this to a multiline if,
and that solves the problem. But I was just curious as why the
former didn't work