• Post Reply Bookmark Topic Watch Topic
  • New Topic

Something wrong with my if  RSS feed

 
Colin Gebler
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So as my first "own Program" to get started i am trying to write a calculator for the Phythagoras theoream but somtehing seems to be wrong with my calculating method ,it does not call the if`s even when they should be true.
I used "avorher" and so on to see whether i am given the specific Data and want it to get the remaining numbers then.However even if i give the method numbers which aren`t 0 it won`t call the if.Maybe i just get the syntax wrong ,i want it to return true if both statements given are false.
I use "done" or "fertig" to check whether it calls the if.

I would really appreciate some help

[list][/list]
 
Colin Gebler
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh ,i got it myself.
 
Ivan Jozsef Balazs
Rancher
Posts: 999
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This seems problematic here:


This might better reflect your intentions:


Viel Spaß!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!