if super AND cali AND fragil AND istic AND expi AND alidocious: ...
longArrayAssignment = [
{
supercalifragilisticexpialidocious: {
super: true,
cali: true,
fragil: true,
istic: true
},
expi: true,
alidocious: true
}
]
longArrayAssignment =
[ ' <-----
{
supercalifragilisticexpialidocious: {
super: true,
cali: true,
fragil: true,
istic: true
},
expi: true,
alidocious: true
}
]
longArrayAssignment = [
{
supercalifragilisticexpialidocious:
{ ' <-------
super: true,
cali: true,
fragil: true,
istic: true
},
expi: true,
alidocious: true
}
]
"belltown" wrote:
I don't think the ";" works for line continuation.
Some statements can be continued on the next line without requiring a line continuation character, e.g.
...
I'm not quite sure why the first case works, but the other two don't. It seems somewhat random to me. Maybe one of the experts could explain.
"destruk" wrote:This ought to be the worst penmanship i have seen here yet. I tried it and it works but still... no "then" nor even ":" as a separator? <shivers>
if myname="fred" yourname = "barney":print yourname
bogus = Something OR something OR something OR dark side
bogus = bogus OR Something OR something OR something OR complete
if bogus then ...
s = """line 1,but knowing BRS origins, best case scenario it may grow Perl's <<<heredoc
line 2""" + ''' and
line 3'''
"dcrandall" wrote:
This came up because we like to keep it javascripty here at this particular shop, and a couple things I would like to break-up are:
1) Function declarations. I know it's bad to have 47 (I exaggerate, but you get my point) parameters to a function, but, sometimes you have to break the rules like an artist.
2) control statements. Sometimes they're just complex and they have to be.
function test (args as object)
print args.param1
print args.param2
print args.param3
print args.param4
print args.param5
print args.param6
' ...
print args.param47
end function
test ({
param1: "abc",
param2: "def",
param3: "ghi"
param4: 3.141,
param5: "xyzzy",
param6: Invalid,
' ...
param47: false
})