Text expressions

Discussion and feedback on Construct 2

Post » Mon Aug 29, 2011 9:21 pm

I miss them. There's so much one could do right now with precious expressions like

find, remove, replace, left, right, gettoken, mid...

I only noticed that there was the expression len to get the string length so far.

Several engines I did in Classic could already work in C2, if only it wasn't missing some of those expressions. I suspect it wouldn't be too laborious to add, so let me carefully ask: will we see more text expressions soon?

B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Mon Aug 29, 2011 11:16 pm

I've added these for the next build:
find, replace, left, mid, right, tokenat, tokencount, trim
('remove' is just a 'replace' with an empty string.)
Did I miss any?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,590

Post » Mon Aug 29, 2011 11:29 pm

[QUOTE=Ashley] I've added these for the next build:
find, replace, left, mid, right, tokenat, tokencount, trim
('remove' is just a 'replace' with an empty string.)
Did I miss any?[/QUOTE]

That's very awesome Ashley! I believe you covered all the important expressions there. Maybe uppercase and lowercase would also be desirable for certain tasks.
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Mon Aug 29, 2011 11:30 pm

Uppercase and lowercase are already there! :)
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,590

Post » Mon Aug 29, 2011 11:32 pm

Ah my bad then, looking forward to the next build!
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445


Return to Construct 2 General

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests