Menu
[FONT=Courier New] ? Can somebody tell me why this code is screwing up?…
(I will use underscores to format it)
function whatever() {
___if SP = 1 {
___if (t==’*’) {
___do this;
___do that;
___etc…
___}
___if (t==’^‘) {
___do this;
___do that;
___etc…
___}
___else {
___do this;
___do that;
___etc…
}[/FONT]
[COLOR=Navy][B][I][FONT=Comic Sans MS]Regards;
The Kooky Dutchman[/FONT] :rolleyes:
[B][COLOR=Navy]P R O B L E M . . . S O L V E D [I]! ! ![/I][/COLOR] [/B]
I needed brackets around the: SP = 1
simple oversight.[/QUOTE]
I needed brackets around the: SP = 1[/QUOTE]
Those would be: [b]parenthesis[/b]....[/QUOTE]
Jeez, give him a break. He's probably British or something, or just unfamiliar with programming terminology.[/QUOTE]
[b]SHUT UP STUPID[/b]...
Whatever remarks I made had to do with his adding underscores for foramtting...
Step off your "I'm [b]L33T[/b]" and kiss my a$$...
.....Willy[/QUOTE]
Jeez, give him a break. He's probably British or something, or just unfamiliar with programming terminology.[/QUOTE]
Excuse me? Are British people thick? Do British people not know programming terminology? God you people make me sick.[/QUOTE]
By the way willy: (brackets == parenthesis) on THIS planet, too. :p[/QUOTE]
function whatever()
{
if (SP == 1) {
switch(t){
case '*':
// when t = '*'
break
case '^':
// when t = '^'
break
default:
// otherwise
}
}
}
Types of brackets:
[list]
[*]() parenthesis
[*][] square brackets
[*]<> angle brackets
[*]{} (curly) braces [/list]
[/QUOTE]
[B][U]parenthesis [/U] [/B] noun -ses
1. a phrase, often explanatory or qualifying, inserted into a passage with which it is not grammatically connected, and marked off by brackets, dashes, etc.
2. [U]Also called: bracket [/U] either of a pair of characters, (), used to enclose such a phrase or as a sign of aggregation in mathematical or logical expressions
3. an intervening occurrence; interlude; interval
4. in parenthesis inserted as a parenthesis
History: C16: via Late Latin from Greek: something placed in besides, from parentithenai, from para-1 + en-2 + tithenai to put
parenthetic or parenthetical adjective
parenthetically adverb [/QUOTE]
[B][U]brace[/U][/B] noun
1. In full: hand brace a hand tool for drilling holes, with a socket to hold the drill at one end and a cranked handle by which the tool can be turned See also: brace and bit
2. something that steadies, binds, or holds up another thing
3. a structural member, such as a beam or prop, used to stiffen a framework
4. a sliding loop, usually of leather, attached to the cords of a drum: used to change its tension
5. a pair; two, esp of game birds a brace of partridges;
6. either of a pair of characters, , used for connecting lines of printing or writing or as a third sign of aggregation in complex mathematical or logical expressions that already contain parentheses and square brackets
7. Also called: accolade a line or bracket connecting two or more staves of music
8. (often plural) an appliance of metal bands and wires that can be tightened to maintain steady pressure on the teeth for correcting uneven alignment
9. any of various appliances for supporting the trunk, a limb, or teeth
10. another word for: bracer 2:
11. (in square-rigged sailing ships) a rope that controls the movement of a yard and thus the position of a sail
12. See: braces
13. verb (mainly tr) to provide, strengthen, or fit with a brace
14. to steady or prepare (oneself or something) as before an impact
15. (also intr) to stimulate; freshen; invigorate sea air is bracing;
16. to control the horizontal movement of (the yards of a square-rigged sailing ship)
History: C14: from Old French: the two arms, from Latin bracchia arms [/QUOTE]
[B][U]bracket [/U] [/B] noun
1. an L-shaped or other support fixed to a wall to hold a shelf, etc
2. one or more wall shelves carried on brackets
3. a support projecting from the side of a wall or other structure See also: corbel ancon console 2:
4. [U]Also called: square bracket [/U] either of a pair of characters, , used to enclose a section of writing or printing to separate it from the main text
[U]5. a general name for parenthesis, square bracket and brace (sense 6) [/U]
6. a group or category falling within or between certain defined limits the lower income bracket;
7. the distance between two preliminary shots of artillery fire in range-finding
8. a skating figure consisting of two arcs meeting at a point, tracing the shape -kets -keting -keted
9. verb (transitive) to fix or support by means of a bracket or brackets
10. to put (written or printed matter) in brackets, esp as being irrelevant, spurious, or bearing a separate relationship of some kind to the rest of the text
11. to couple or join (two lines of text, etc.) with a brace
12. (often foll by with) to group or class together to bracket Marx with the philosophers;
13. to adjust (artillery fire) until the target is hit
History: C16: from Old French braguette codpiece, diminutive of bragues breeches, from Old Provençal braga, from Latin braca breeches [/QUOTE]
0.1.9 — BETA 5.4