If statements

If statement

Page 1 of 1

4 Replies - 1668 Views - Last Post: 19 November 2010 - 10:29 AM Rate Topic: -----

#1 DarkLord9111  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 17-November 10

If statements

Posted 19 November 2010 - 09:55 AM

i have to write an If statement that assigns 0 to intX when intY is equal to 20. This is what i got

IF IntY = 20 Then intX = 0
End IF
Is This A Good Question/Topic? 0
  • +

Replies To: If statements

#2 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 299
  • View blog
  • Posts: 1,768
  • Joined: 26-March 09

Re: If statements

Posted 19 November 2010 - 09:57 AM

OK, it looks fine.

What problem do you have with it?
Was This Post Helpful? 0
  • +
  • -

#3 DarkLord9111  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 17-November 10

Re: If statements

Posted 19 November 2010 - 10:09 AM

I have to write an If statement that multiplies decPayRate by 1.5 when hours is greater than 40

This what i got


IF decPayRate > 40 then *40
Was This Post Helpful? 0
  • +
  • -

#4 DarkLord9111  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 17-November 10

Re: If statements

Posted 19 November 2010 - 10:19 AM

i have to write an IF statement that sets the variable intfees to 50 when the boolean variable blnIsMax is True


IF intfees = 50 then blnIsMax = true
Was This Post Helpful? 0
  • +
  • -

#5 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6036
  • View blog
  • Posts: 23,428
  • Joined: 23-August 08

Re: If statements

Posted 19 November 2010 - 10:29 AM

Merged what are, for all intents and purposes, duplicate topics.

Why do I get the feeling you're sitting in an exam, looking for us to feed you answers? Because if you weren't, why wouldn't you just try these in your compiler?
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1