LUALoriotPro WEB site

LoriotPro scripting documentation
Extensions for LUA language

Table of contents Search function

Print the current page Mail this  link UTUBE Channel version française

lp.Stop - Stop a running LUA script

LoriotPro has extended the LUA sripting language by providing its own LUA libraries. The new functions provided are dedicated to the creation of monitoring and SNMP automation application.

Syntax

lp.Stop();

Description

The lp.Stop LUA function stops and leaves a running LUA script.

Parameters

none

Return Values

A character string is dispalyed : ‘Break - exit program !’ and a dump of the variable of the current running loop.

Example

We define a loop of 10 cycles that should stop after 5 cycles.

The LUA code :

for i=0,10 do

if (i==5) then lp.Stop(); end

lp.Print("Value : ",i,"\n");

end

The result

stop running lua script

 

 


www.loriotpro.com