SOK ideas

Charles Cossé ccosse at gmail.com
Wed Oct 19 19:19:11 UTC 2016


On Wed, Oct 19, 2016 at 12:14 PM, JAZEIX Johnny <jazeix at gmail.com> wrote:

>
> The question is more on how to handle the different cases with the same
> base code. We should have a way to know if the data is good without having
> a lot of if(multiplication) check if (number 1 * number 2 = expected
> result) else if (addition) check if (number 1 + number 2 = expected
> result)...
>

Hi, just lurking on your list, but if I may suggest: just evaluate the
string expression and test whether true or false.  That works for all math.
-Charles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/gcompris-devel/attachments/20161019/c3cf19ca/attachment-0001.html>


More information about the GCompris-devel mailing list