Answer: change with my_name = 'Timothy'
to with my_name := 'Timothy'
. This will assign the string 'Timothy' to my_name
(instead of trying to compare 'Timothy' to my_name
which doesn't exist). Then it will compare it to 'Benjamin'
and return {true}
because they are not equal.
insert City {
name := 'Constantinople',
modern_name := 'İstanbul' # Comma after here is fine if you want
};
This is all you need: select City.name;
4. Try selecting all the City
types along with their name
and modern_name
properties, but change .name
to say old_name
and change modern_name
to say name_now
.
select City {
old_name := .name,
name_now := .modern_name,
};
Of course, this will not change the name of the properties. old_name
and name_now
only show up in this one query.
No, because keywords are case insensitive.