UNPKG

alasql

Version:

AlaSQL.js - JavaScript SQL database library for relational and graph data manipulation with support of localStorage, IndexedDB, and Excel

26 lines (21 loc) 578 B
if(typeof exports === 'object') { var assert = require("assert"); var alasql = require('..'); } else { __dirname = '.'; }; describe('Test 210 WHILE BREAK CONTINUE', function() { it("1. WHILE BREAK", function(done) { alasql('SET @i = 1; \ WHILE @i < 5 \ BEGIN \ PRINT @i;\ SET @i = @i + 1;\ IF @i = 2 CONTINUE; \ PRINT @i*10;\ END',[],function(){ console.log('ok'); done(); }); }); });