Jump to content



Photo
- - - - -

Command If


  • Please log in to reply
3 replies to this topic

#1 Colombia

Colombia

    Casio Addict

  • Members
  • PipPipPip
  • 94 posts
  • Gender:Male
  • Location:Venezuela

  • Calculators:
    algebra FX 2.0 plus
    Classpad 300

Posted 01 June 2006 - 05:29 PM

What I need to do to make If (A= B) worth?

Is it me or is it Basic?

#2 Kilburn

Kilburn

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 491 posts
  • Gender:Male
  • Location:France
  • Interests:Blah

  • Calculators:
    FX-7500 G
    ClassPad 300

Posted 02 June 2006 - 07:07 AM

Basic:
If A=B
Then
...
IfEnd

Lua:
if A==B then
 ...
end

;)

#3 Colombia

Colombia

    Casio Addict

  • Members
  • PipPipPip
  • 94 posts
  • Gender:Male
  • Location:Venezuela

  • Calculators:
    algebra FX 2.0 plus
    Classpad 300

Posted 02 June 2006 - 08:40 PM

Basic:

If A=B
Then
...
IfEnd

Lua:
if A==B then
 ...
end

;)


I'm sorry but i know the estructure of IF

My question was why Basic can't compare letters.
When I put
/////////////////////
If A=B
Then
.......
Else
.......
IfEnd
/////////////////////
The error message is "UNDEFINED RESULT IN CONDITION JUDGMENT"

#4 Kilburn

Kilburn

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 491 posts
  • Gender:Male
  • Location:France
  • Interests:Blah

  • Calculators:
    FX-7500 G
    ClassPad 300

Posted 03 June 2006 - 12:17 PM

My question was why Basic can't compare letters.


Ahhhh, ok. So, you have to write this:

StrCmp A,B,C
If C=0
Then
...(A=B)
Else
...(A<>B)
End





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users