There is at least one path on which no string value is returned

Top  Previous  Next

Messages > There is at least one path on which no string value is returned

 

For a production or a token a return type xxx may be declared, but there is a possibility, to walk through the code of the script, without returning a value.

For example a token script could be used to return different strings depending of a recognized number:

 

str sDefault;

switch(xState.itg())

{

case 1:

return "eins";

case 2:

return "zwei";

default:

sDefault = xState.str();

}

 

In the default case, no value will be returned.

 



This page belongs to the TextTransformer Documentation

Home  Content  German