Is there a pass statement in Lua like in python

As in python, we have a pass statement.

  def calcu ():
     pass

Is there such statistics in Lua? I want to make

  if connect then 
     pass
+7
lua
source share
1 answer

pass in Python does nothing. In Lua, you can just leave it empty:

 if connect then end 

If you want to fill, use an empty block

 if connect then do end end 

or if in Lua 5.2 use a semicolon:

 if connect then ; end 
+8
source share

All Articles