I have a layout DXL column that acts as a summary column and displays one cell's worth of information from one of the preceding 4 columns. The info displayed by this summary column is chosen such that it will only display info from the highest priority column that has info present (#1, then #2, then #3, then #4). |
Re: if object does not have link statement |
Re: if object does not have link statement
bool HasOutLink = false
Link l
for l in (obj -> "*") HasOutLink = true
if (!HasOutLink)
{ // object has no outgoing links; use col 2/3/4
}
else
{ // in links, use col 1
|
Re: if object does not have link statement llandale - Fri Mar 02 16:44:46 EST 2012
bool HasOutLink = false
Link l
for l in (obj -> "*") HasOutLink = true
if (!HasOutLink)
{ // object has no outgoing links; use col 2/3/4
}
else
{ // in links, use col 1
-E- DXL: <Line:3> incorrect arguments for (=) -E- DXL: <Line:4> syntax error -E- DXL: <Line:3> incorrectly concatenated tokens -I- DXL: all done with 3 errors and 0 warnings when I plug your above code directly into the layout DXL. I added the } at the end of the else statement, but is there anything else I'm missing to make this run? Thanks |
Re: if object does not have link statement joshuauy - Fri Mar 02 17:02:44 EST 2012 I added an attribute DXL column to show the number of outlinks and added an "if(outLinks == 0) or else" statement around all of my code. Again, it's ugly, but it seems to get the job done. Thanks again. |