add lua if, type

Signed-off-by: yfcheng <18912964525@163.com>