lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 2012-02-09 10:35, Petite Abeille wrote:

Then simply concatenate your strings:

print
(
  "Case: (Flow_Entry=Nil and direction=SERVER_TO_CLIENT): " ..
  "Wrong packet received. Flow_entry not there for flow and " ..
  "packet received from " ..
  "server."
)

Or use format:

print
(
  ( '%s%s%s%s' ):format
  (
    "Case: (Flow_Entry=Nil and direction=SERVER_TO_CLIENT): ",
    "Wrong packet received. Flow_entry not there for flow and ",
    "packet received from ",
    "server."
  )
)

Yet another alternative style:

print(table.concat{
  "Case: (Flow_Entry=Nil and direction=SERVER_TO_CLIENT): ",
  "Wrong packet received. Flow_entry not there for flow and ",
  "packet received from ",
  "server."
})

--
Pierre 'catwell' Chapuis