например так:
---------------------------
local qtnF=getQuoteLevel2 (ClassCode, nFuture)
if qtnF~=nil then
local bid_=qtnF.bid;
local bid_count=qtnF.bid_count;
if bid~=nil and bid_count~=0 then
bid=bid_[bid_count].price
--делаем что надо
--
end
end
---------------------------
local qtnF=getQuoteLevel2 (ClassCode, nFuture)
if qtnF~=nil then
local bid_=qtnF.bid;
local bid_count=qtnF.bid_count;
if bid~=nil and bid_count~=0 then
bid=bid_[bid_count].price
--делаем что надо
--
end
end