Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Error: end is a keyword

A topic by qbjl created 8 days ago Views: 79 Replies: 3
Viewing posts 1 to 2

i'm not sure what to do! i'm trying to make a dropdown prototype and the script inside has this code:


every time i try to save it, it says that "end" (the one next to my cursor) is a keyword and cant be used as a variable, even though obviously here it's not being used as a variable????

i'm super confused, looked everywhere for an answer, couldn't find one.

if the image isn't loading:

Developer(+1)

It looks like you aren't using the correct syntax for "select" queries. The "end" preceding the cursor in your screenshot is where Lil expects an expression, column name, or where/orderby/by clause. If your intention is to make a table from scratch you might mean something like:

select c1:opt from ()

But if the goal is simply to turn the list "opt" into a single-column table you could instead use the "table" operator instead of a query form:

 table "alpha","beta","gamma"
 
+---------+
| value   |
+---------+
| "alpha" |
| "beta"  |
| "gamma" |
+---------+

Does that make sense?

(+1)

YES thank you sm