I'm just starting with pascal, and programming altogether so I'm making a practice application.
I cant understand the cause of this error:
[Error] pie.dpr(39): Incompatible types: 'String' and 'procedure, untyped pointer or untyped parameter'
thepie, again : string;
writeln ('Hi, cheese!!!') ;
writeln ('Insert pie type : ');
if thepie = 'cheese' or if thepie = 'Cheese'
writeln ('Cheese pie?! ...Delicious!')
if thepie = 'chicken' or if thepie = 'Chicken'
writeln ('Chicken pie?! Woah!')
if thepie = 'noodle' or if thepie = 'Noodle'
writeln ('does that exist! It would be an epic pie if it did!')
write ('mmmm... ');
write (' flavoured pie...');
writeln (' ');
writeln ('Try again?');
if again = 'y' or if again = 'yes' or if again= 'Yes' or if again= 'YES'
Can someone explain what I'm doing wrong?