2.5.0 Toggle Startup (How it works)?

Toggle Startup :

int y = 5;

LoliCode In Normal use :


int x = 5;

BLOCK:Script
INTERPRETER:Jint
INPUT x,y
BEGIN SCRIPT
var result = x + y;
END SCRIPT
OUTPUT Int @result
ENDBLOCK

it gives me this :slight_smile:

[IDLE] CompilationErrorException: (9,28): error CS0103: The name β€˜y’ does not exist in the current context

You can’t directly access the var, instead globalise the token first ,

globals.Token = y

1 Like

Works Fine Thank you @Error