Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
string fruit = getElement(argv, 1);

if( isNull(fruit) ){
	return "What? You don't like fruits?";
}

Image RemovedImage Added

Field Validation Errors

If you have multiple input fields on the screen, we recommend to validate them all at once and show errors for each one.

Image RemovedImage Added

To do this, return an array containing pairs of label and error. 

...