1mbsite/1mbcode

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (v0.0.1) of this package.

Maintainers

Package info

github.com/1mbsite/1mbcode

Issues

pkg:composer/1mbsite/1mbcode

Statistics

Installs: 17

Dependents: 0

Suggesters: 0

Stars: 14

v0.0.1 2019-01-07 19:47 UTC

This package is auto-updated.

Last update: 2020-01-31 00:59:06 UTC


README

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d316d6273697465253246316d626f6364652d6f72616e67652e737667

1mbcode is a backend language written for 1mb.site. It gives basic backend functionality to developers in a sandboxed environment.

Syntax

Variables

1mbcode supports array|string|integer|float|boolean data types, below are examples for creating variables and assigning their value.

Array

var myArray = {"name": "jake"};

String

var myString = "Hey! I'm Jake!";

Integer

var myInteger = 100;

Float

var myFloat = 100.99;

Boolean

var myBool = true;

Variable References

You can reference a variable as the value of another variable, function parameter, etc with the & char e.g &myVar.

Assignment Operators

1mbcode supports standard assignment pperators +, -, *, /. You can use any of these operators on integer, float, or variable references. note: assignment operators have not yet been implemented on variable references

Storing Function Results

var myFuncResult = get_url("https://google.com");