If the question specifies that the number of the words should be less than 3, and the number of words in your answer is larger than 3, your answer is automatically wrong.

From Esolang
Jump to navigation Jump to search

If the question specifies that the number of the words should be less than 3, and the number of words in your answer is larger than 3, your answer is automatically wrong. is an esoteric programming language invented by User:A inspired by this sentence: If the question specifies that the number of the words should be less than 3, and the number of words in your answer is larger than 3, your answer is automatically wrong, where the question specifies that the number of the words should be less than 3, and the number of words in your answer is larger than 3, your answer is automatically wrong. It was created when someone mailed "If the question specifies that the number of the words should be less than 3, and the number of words in your answer is larger than 3, your answer is automatically wrong".

Syntax

The question is a string of symbols that will be entered from the input. The symbols that will be entered from the input will be from the ASCII table.

You are required to append your answer into the input; it will also be a string of ASCII symbols. Otherwise, the grader will not be able to check your answer and your answer will automatically be an "×"; in other words, it will automatically be wrong.

Your answer will be substituted as "valid" or "not valid"; that will signify whether you got the answer correct or not.

# If the question specifies that the number of the words should be less than 3, and the number of words in your answer is larger than 3, your answer is automatically wrong.
Q.len < 3 & U.len > 3 : U.ans = automatically "wrong"

# If the question specifies that the number of the words should be less than 3, and the number of words in your answer is larger than 3, your answer is automatically wrong.
Q.l<3&U.l>3:U.a="wrong"

This language is very trivial. Here is a list of commands:

?.len (or simply ?.l) Find the length of the lists. (There are only two lists: the question and your answer.)
automatically         Syntactic sugar, in order to help people to read this
"x"                   The string constant x.
<                     Less than.
=                     Assignment.
>                     Greater than.
&                     And operator.
:                     Signifies an "if" condition using the values in the preceding half of the line.
number                An integer constant.
?.ans (or simple ?.a) The answer. It is the list.

In order to help people to read this language without special knowledge, here is a verbose version of the program above:

If the question specifies that the number of the words should be less than 3, and the number of words in your answer is larger than 3, your answer is automatically wrong.