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
How to type || without getting an if statement?
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
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;
- chrisjlocke
- Top Contributor
- Posts: 995
- Joined: Mon Aug 01, 2005 4:12 pm
- Location: Essex, UK
- Contact:
|| = if statement
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?
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?
- chrisjlocke
- Top Contributor
- Posts: 995
- Joined: Mon Aug 01, 2005 4:12 pm
- Location: Essex, UK
- Contact:
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...'

(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:

Go to 'PHP' -> 'PHP' -> 'Edit PHP Snippets...'

(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:

- chrisjlocke
- Top Contributor
- Posts: 995
- Joined: Mon Aug 01, 2005 4:12 pm
- Location: Essex, UK
- Contact: