If your new to programming, this will be a great tutorial for the fundamentals of programming logic. An if statement is one of a few ways to do something when a condition is set. It helps control the flow of your coding logic. page

In English:

> If you are thirsty, take a drink.

jsCode := ' var thirsty = true; var drank = false; if(thirsty == true) //notice the == { drank = true; document.write(drank); }'. memfs := FileSystem memory. file := memfs / 'test.js'. file writeStreamDo: [:stream| stream nextPutAll: jsCode]. model := (GtJSImporter new importDirectory: file parent) model

**//FIXME**: extract `jsCode` and display result in a frame (`esm.html`). Cf. If Statements


Root folder

Parse with JSParser