There are already services which try to cater to "non-programmers", but they generally try to deploy a web version of a WYSIWYG editor.
I personally do like the idea, but I wonder if, in practice, it would end up being complex enough that it might as well be programming for the layman. Your listed examples already appear to incorporate string concatenation, arrays and booleans. You might have a difficult sell to non-technical people who are also looking at, say, Wix.