Displaying 20 results from an estimated 1000 matches similar to: "For loop with if else statement"
If Then Else Statements - Outbound Dialling on ISDN using CAPI -Individual Dial out Plans using msns
2004 May 04
2
If Then Else Statements - Outbound Dialling on ISDN using CAPI -Individual Dial out Plans using msns
Hi All,
Many thanks to Marc who helped me with a previous Capi Dialout plan -
however.....
What I now would like to be able to do is: -
We have 8 msn's 383590, 383591 383592 etc.
What I would like to do is set up an If Then Else type statement along the
following lines: -
If extension 7957 Then
Dialout on Capi msn 383590
ElseIf extension 7958 Then
Dialout on Capi msn 383591
ElseIf
2005 Sep 16
3
Rather serious flac problem
Okay.. I love flac but just had a rather serious failure that really
shakes my confidence. It resulted in the near loss of a master audio
recording. Fortunately, I have a backup. Though there may have been
other cases where I have lost original material because I have been
compressing a lot of originals and deleting them after doing a 'flac
-t' on them.
Basically, flac failed with a
2017 Feb 08
3
Linking Linux kernel with LLD
>I have just checked it, the startup.elf and realmode.elf are fine. Only few changes are required for mainline kernel and one >commit has to be reverted from lld and a few patches have to be applied.
>
>The only step when I have used BFD is linking vmlinux. I have manually set LD variable in vmlinux_link() function. The vmlinux >produced by lld doesn't work yet. I will compare
2007 Sep 27
1
SAS proc reg stepwise procedure in R
I try to reproduce the SAS proc reg stepwise model selection procedure in R, but the only function I found was "step" which select new variables based on AIC. The SAS procedure I use add a new variable to the model based on F statistics and a pre defined significant level. Then before any new variables are added variables in the model that not meet F statistics at the significant level
2012 Aug 13
4
if else elseif for data frames
Hi all,
It seems like I cannot use normal 'if' for data frames. What would be the
best way to do the following.
if data$col1='high'
data$col2='H'
else if data$col1='Neutral'
data$col2='N'
else if data$col='low'
data$col2='L'
else
#chuch a warning?
Note that col2 was not an existing column and was newly assigned for this
2017 Feb 03
3
Linking Linux kernel with LLD
On Thu, Feb 2, 2017 at 12:38 AM, George Rimar <grimar at accesssoftek.com>
wrote:
> >As far as the setup, I would recommend setting up qemu for actually
> running the LLD-linked kernel and custom bootloader etc. because then you
> can have a single >script that rebuilds the bootloader and kernel and
> copies the files to the VM. This reduces iteration time significantly.
1999 Mar 15
3
dos?
I have an old dos app that doesn't run in the win95 shell very well.
There are problems with the graphics.
Is it possible to connect to a samba server from real dos? I assume the
answer is no but I thought I would check.
Verne Ball
vball@socrates.berkeley.edu
2009 Mar 23
1
Memdisk + Freedos problem
I and some other people have problems with running the freedos image included in
Ultimate Boot CD (UBCD), when using memdisk for floppy emulation.
Memdisk starts booting the image and freedos shows the following menu:
0 Boot Clean
1 Boot UMBPCI (silent)
2 Boot UMBPCI (optimal)
3 Boot UMBPCI (semi-defensive)
4 Boot EMM386 (optimal)
5 Boot EMM386 (semi-defensive)
6 Boot no UMB (defensive)
7 Boot
2006 Jul 03
5
How do I code this conditional statement in Ruby
Hi, I am a COBOL programmer and I am busy teaching myself Rails and Ruby.
In COBOL I can code this conditional
If x = 1
next sentence
else
..........................
The "next sentence" statement enables me to get out of the
conditional. How would I code the same thing in Ruby? In C you could
use break but I understand that Ruby has no break statement.
Regards,
Paul
1998 May 18
1
DOS-Client with TCPIP and SAMBA
Hi there,
I have a client in a network using a samba-server that has to use MSDOS, because
some software running on it needs a clean DOS. I installed the DOS-Client for
TCPIP that is available from Microsoft V 1.0 and it works fine; the only thing
is, that it takes so much memory below 640 K, that another program also running
under DOS does not function correctly anymore. Maybe some of the
2008 Jan 01
3
if statement problem
Hi All,
I have a small dataset named das (43 cases) in which I am trying to
create a binary outcome (1/0) based on the following code:
if (das$age>65 && das$bmi>30) {das$danger<-1} else das$danger<-0
I am setting a flag called 'danger' to 1 of the subject is over 65
and has a BMI > 30.
I find that my statement evaluates the first record in the data.frame
and
2017 Feb 13
5
(RFC) JumpMaps: switch statement optimization
Hi All,
This is our first appearance on llvm-dev so a small introduction is in
order.
We are a team of two working for good few years now on an out-of-tree
embedded back-end. Our primary goal is code size, secondary performance.
We've recently implemented an optimization that we believe others could
use. It's about time to contribute back.
2006 Apr 07
3
simple if statement
I am ashamed to be asking this question, but I couldn't find the
solution anywhere. Searching for "if" and "R" is not very
productive...
I cannot get a simple if statement to work.
I have data on college students. I want to make a string variable
that has the names of the years. That is, when the year variable i is
equal to 1, I want to have a variable called years
2015 Mar 31
7
sssd-ad cannot be installed with sernet samba
On 31/03/15 03:54, Sketch wrote:
> On Mon, 30 Mar 2015, Rowland Penny wrote:
>
>> On 30/03/15 16:33, Luca Olivetti wrote:
>>> Right, the correct solution would be to package samba in a way that
>>> doesn't break sssd.
>>
>> You could also say that sssd should be packaged in a way that works
>> with the sernet packages.
>
> I'm with
2004 Jun 09
3
market-basket analysis in R
Hi there fellow R-users,
Does anyone know if there exists a package for associated rules data mining
(market basket analysis) in R.
I have tried searching CRAN but with no luck.
Regards
Wayne
KSS Ltd
Seventh Floor St James's Buildings 79 Oxford Street Manchester M1 6SS England
Company Registration Number 2800886
Tel: +44 (0) 161 228 0040 Fax: +44 (0) 161 236 6305
2017 Feb 14
2
(RFC) JumpMaps: switch statement optimization
JumpMap lowering is nearly identical to that of JumpTables with the
exception of lack of range-check basic-block.
We introduce JumpMapInfo structure which follows the same flow as
JumpTableInfo and is finally emitted by AsmPrinter.
There are many ways a Target may want to encode jumpmaps (deltas,
compression, relative vs absolute), so we plan to keep this flexible and
target-driven when
2007 Jan 19
3
if else statement
Hello,
I'm doing some scripting and I've noticed that R doesn't seem to
have an
if (cond){
do
}ifelse (cond) {
do
} else {
do
}
type block.
Is this correct or am I missing something.
THX
Paul
--
Research Technician
Mass Spectrometry
o The
/
o Scripps
\
o Research
/
o Institute
2009 Oct 03
1
if else statement error
Hello,
I am doing a if else statement in R. But it always comes out error such as
'unexpected symbol'
There are two variables. ini and b. when ini=1, a=3; when ini>1 and b>2,
a=3; all other situations, a=6. I don't know where it is wrong.
Here is my code
ini=3
b=4
if (ini==1) {
a=3
}
else if (ini>1 and b>2 ) {
a=3
}
else {a=6}
Thanks a
2009 Oct 27
1
New vector based on if/else statement within for loop?
Hello,
I am trying to create a new vector (w) that is based on comparing two
vectors (P and Z). The compaison is simple (I created a for loop that
reassigns w based on if statement), all Z values >= 24 and P values <=1,
w=88 else w=77. I am not getting the correct results for w, see
example code below. Any thoughts or suggestions on the correct method.
Thank you,
Doug
P <-
2012 Jan 22
2
if/else statement without curly brackets gives a problem
Hello,
This example seems strange to me:
> if (2 > 3) print('Yes'); else print('No')
Error: unexpected 'else' in " else"
> {if (2 > 3) print('Yes'); else print('No')}
Error: unexpected 'else' in "{if (2 > 3) print('Yes'); else"
> {
+ if (2 > 3) print('no')
+ else print('yes')
+ }