s = iswasm()
| Parameter | Description |
|---|---|
| s | a logical: true if it is a WebAssembly platform. |
iswasm checks if it is a WebAssembly platform.
It returns true when Nelson runs from a WebAssembly build (in a browser or a WebAssembly runtime), and false otherwise.
if iswasm
disp('Your platform is WebAssembly')
else
disp('Your platform is not WebAssembly')
end
| Version | Description |
|---|---|
| 2.0.0 | initial version |