LPW LPW 21.5: Last Paster Wins

Status
Not open for further replies.

Lara

Well-Known Member
Joined
Jan 23, 2021
Messages
1,659
let string = "1234566789/2/2021";
let desired = string.split("/")[0];

Should probably work, not testing it right now, that's from memory.
EDIT: After going through, for excel probably `=LEFT(MyCell, (FIND("/", MyCell, 1) -1))`, haven't written excel stuff since middle school though.

Not really a fan of donuts tbh.

Probably, will be bored for the first two weeks due to quarantine.
Which programing language is the "let string"?

If you visit, we'll keep you company. :)
 

Nicholas

Well-Known Member
Joined
Jun 23, 2020
Messages
6,492
Location
East London
Which programing language is the "let string"?

If you visit, we'll keep you company. :)
Probably all of them.

I'm not a programmer, so apply a sack or two of salt.

In Johnatan's example, he is assigning a value to a variable. Some programming languages use "let", while others look more like maths and say something like "p = 12" [or FirstName = "Betsy"]

Consult Google for a more coherent and informed explanation.


Points at himself at laughs at the dolt who is trying to say something about a topic he doesn't know well at all. 🤪
 

Jings

Well-Known Member
Joined
Mar 30, 2020
Messages
6,092
Location
Gauteng
01010011 01100001 01111001 00100000 01110111 01101000 01100001 01110100 00111111 00100000
 

Seldom Bucket

Well-Known Member
Joined
Mar 15, 2020
Messages
3,945
Location
Midgard
Sean Austin's birthday today.
Happy Thursday

q3WPkX0edqmGuLLh1kqzZHNzsxMVOPcmawlSesGnhPY.jpg
 
Status
Not open for further replies.
Top