How to type || without getting an if statement?

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
ZAP
Posts: 3
Joined: Sun May 28, 2006 4:47 am

How to type || without getting an if statement?

Post by ZAP »

Hello -

Been using RapidPHP for a while, and this is something that has always driven me crazy. When I try to type an OR comparison (||) the program always replaces the pipe charaters with if statements! I have looked and looked but I can't figure out how to disable this "feature".

This may have been answered before, but it's a very tough thing to search for (I did try).

Thanks in advance for your replies.


ZAP
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

How do you meani it "program replaces "||" with "if"... I type || and nothing happens.
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

I've only got WeBuilder, not Rapid PHP, but initially thought it might be an auto correct feature, but was going to download Rapid PHP (well, the demo) to test.

ZAP- Have you checked your auto correct (in Options ... well, it is in WeBuilder...) to see if its in there?
ZAP
Posts: 3
Joined: Sun May 28, 2006 4:47 am

|| = if statement

Post by ZAP »

Thanks for your replies.

I turned off both Auto Complete and Auto Replace in Preferences long ago and it still happens.

I wonder if the issue might be specific to my Spanish keyboard. The | character on this keyboard is accessed by pressing Right-Alt+1 (the Alt keys behave differently on Spanish keyboards). Is there a macro set to that key combination that I could disable somewhere?
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

That probably explains it then. CTRL + ALT + 1 is the shortcut to an IF block (well, it is in WeBuilder)

Go to 'PHP' -> 'PHP' -> 'Edit PHP Snippets...'
Image
(click thumbnail for bigger pic)

(The menu may be different in Rapid PHP)

Select 'If' then click the 'Edit' button.
Change the shortcut key in the top right box:
Image
ZAP
Posts: 3
Joined: Sun May 28, 2006 4:47 am

resolved

Post by ZAP »

YES!

THANK YOU so much for figuring this out! It's been bugging me for months. That fixed it.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

I am wondering why the heck you need to press Ctrl + Alt + 1 to get | ? :shock: What kind of keyboard are you using? :)
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

Spanish? :lol:
Post Reply