this is my source code i am trying to make an interact system and im stuck i have never done this before so if it is a blatant issue dont be to hard on me i have coded in p5.js before but never done anything like this before, my problem at the bottom it is a function named sayName but the createP is not working it is saying that hello! is not a funtion
var textfield;
var input;
var TextP;
var NameP;
var v;
function setup() {
textfield = createInput();
textfield.position(0, 0);
textfield.changed(Hello);
TextP = createP("say hello!")
TextP.position(180, -10)
}
function Hello() {
if (textfield.value = "hello")
nameP = createP("hello please type your name")
nameP.position(0, 50)
input = createInput()
input.position(0, 40)
input.changed(SayName)
}
function SayName() {
createP("hello!" textfield.value())
NameP.position(0, 70)
}