search for: elseif

Displaying 20 results from an estimated 109 matches for "elseif".

Did you mean: else
2008 May 01
3
elseif syntax
Hi, all How to use elseif ? For example, like following short python examples. ********* x = 1 if x == 1: print 'same' *elif* x > 1: print 'bigger' else: print 'smaller' ********* Thanks in advance, Hyunchul Kim [[alternative HTML version deleted]]
2016 Mar 14
3
clang triple and clang target
On Sat, Mar 12, 2016 at 2:38 PM, Tim Northover <t.p.northover at gmail.com> wrote: > On 12 March 2016 at 11:51, Rail Shafigulin via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > I tried every possible combination of --target I could think of but > nothing > > worked. Would you mind helping me out? > > First, 64-bit x86 is "x86_64", and 32-bit
2002 Mar 24
3
Data Checking
Hi, This is a simple question with if elseif....however I am having trouble constructing the solution for some reason. Suppose I have a data set with 3 variables, a, b and c say. Let's say c is the sum of a and b. So: a b c 1 2 3 2 3 5 3 4 7 . . . . . . . . . Suppose that I know there have been some data en...
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
2003 Mar 26
2
ifelse()
...t with ifelse() I can do something like: ifelse(x <= 3, 1, 2) to go through each element in my vector x, and if x_i <= 3 substitute the number with 1 else with 2. Essentially I'll get a vector with 2 levels. Can I tweak it so I can get 3-levels? For example: if(x <= 3) then 1 elseif(3 < x <= 4) then 2 elseif(x > 4) then 3 -- Cheers, Kevin ------------------------------------------------------------------------------ /* Time is the greatest teacher, unfortunately it kills its students */ -- Ko-Kang Kevin Wang Master of Science (MSc) Student SLC Tutor and Lab Dem...
2004 Aug 06
2
XML statistics on remote server
what i did in this situation was dump the stats/status file to the local server through a lynx --dump call from php .. and then i also update a sql table to reflect the changes so i can poll that instead .. a. <p>On Thu, 26 Feb 2004, MacSym wrote: > > Hi everybody, > > I am wondering if it is possible to generate the XML/XSL files on a remote > server (status.xsl,
2018 Feb 09
2
[cfe-dev] [Release-testers] [6.0.0 Release] Release Candidate 2 tagged
...++ CMakeFiles, it appears to be governed by LIBCXX_CXX_ABI_LIBNAME, but it isn't being set to the correct value of "cxxrt" on FreeBSD. I am going to try the following diff: --- llvm.src/projects/libcxx/CMakeLists.txt +++ llvm.src/projects/libcxx/CMakeLists.txt @@ -135,6 +135,8 @@ elseif (APPLE) set(LIBCXX_CXX_ABI_LIBNAME "libcxxabi") set(LIBCXX_CXX_ABI_SYSTEM 1) + elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD") + set(LIBCXX_CXX_ABI_LIBNAME "libcxxrt") else() set(LIBCXX_CXX_ABI_LIBNAME "default") endif() -Dimitry -----...
2019 Nov 22
1
[PATCH v4] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges
...GOF() gets called from the power resource _OFF(): Method (PGOF, 1, Serialized) { PIOF = Arg0 If ((PIOF == Zero)) { If ((SGGP == Zero)) { Return (Zero) } } ElseIf ((PIOF == One)) { If ((P1GP == Zero)) { Return (Zero) } } ElseIf ((PIOF == 0x02)) { If ((P2GP == Zero)) { Return (Zero)...
2019 Nov 22
0
[PATCH v4] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges
...Method (PGOF, 1, Serialized) > { > PIOF = Arg0 > If ((PIOF == Zero)) > { > If ((SGGP == Zero)) > { > Return (Zero) > } > } > ElseIf ((PIOF == One)) > { > If ((P1GP == Zero)) > { > Return (Zero) > } > } > ElseIf ((PIOF == 0x02)) > { > If ((P2GP == Zero)) >...
2004 May 04
2
If Then Else Statements - Outbound Dialling on ISDN using CAPI -Individual Dial out Plans using msns
...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 extension 7959 Then Dialout on Capi msn 383592 Etc Etc If you could give me a simplistic example (as always!!!), including which files I put the coding in (i.e. extensions, capi etc.) I would be most grateful. Thanks as always. Nick
2019 Nov 20
1
[PATCH v4] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges
...Break > } > > Sleep (0x10) > TCNT += 0x10 > } > > P0RM = One > P0AP = 0x03 > } > ElseIf ((PIOF == One)) > { > P1LD = One > TCNT = Zero > While ((TCNT < LDLY)) > { > If ((P1LT == 0x08)) > { >...
2018 Feb 11
2
[Openmp-dev] [cfe-dev] [Release-testers] [6.0.0 Release] Release Candidate 2 tagged
...LIBCXX_CXX_ABI_LIBNAME, but it isn't being set to the correct value of "cxxrt" on FreeBSD. I am going to try the following diff: >> >> --- llvm.src/projects/libcxx/CMakeLists.txt >> +++ llvm.src/projects/libcxx/CMakeLists.txt >> @@ -135,6 +135,8 @@ >> elseif (APPLE) >> set(LIBCXX_CXX_ABI_LIBNAME "libcxxabi") >> set(LIBCXX_CXX_ABI_SYSTEM 1) >> + elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD") >> + set(LIBCXX_CXX_ABI_LIBNAME "libcxxrt") >> else() >> set(LIBCXX_CXX_ABI_LIBNAME &q...
2019 Nov 20
4
[PATCH v4] pci: prevent putting nvidia GPUs into lower device states on certain intel bridges
...there is similar check in the _ON (PGON) method: Method (PGOF, 1, Serialized) { PIOF = Arg0 If ((PIOF == Zero)) { If ((SGGP == Zero)) { Return (Zero) } } ElseIf ((PIOF == One)) { If ((P1GP == Zero)) { Return (Zero) } } ElseIf ((PIOF == 0x02)) { If ((P2GP == Zero)) { Return (Zero)...
2007 Jun 21
4
"if" within a function
...b=20 > bbb=aaa(b) > bbb [1] 2 > typeof(bbb) [1] "double" > > > c=1 > ccc=aaa(c) > ccc NULL > typeof(ccc) [1] "NULL" It seems that only the last 'if' phrase works. Is it an instrinsic weakness of R? Is there a way to get around it? ( I use 'elseif' to get around this when there are only two cases to choose from, but what if there are more than two cases to choose from?) Best Yuchen [[alternative HTML version deleted]]
2014 Dec 01
3
[LLVMdev] [Compiler-rt] -march=aarch64 flag in gcc/clang
Hi, I wonder if this is a valid flag in either clang/gcc. The flag in question is "-march=aarch64". I verified with latest tip and neither clang nor gcc fail to recognize this flag. This piece of code is in cmake/config-ix.cmake in compiler-rt repo. + elseif("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "aarch64") + test_target_arch(aarch64 "-march=aarch64") Anyone have any thoughts or any suggestions ? Currently this is blocking my compiler-rt build for aarch64-linux. --Sumanth G -------------- next part -------------- A...
2007 May 06
1
sieve parse error
...------------------------------------------------------------------------------------- require "fileinto"; if header :contains ["to", "Cc", "Bcc"] ["freewrt-users at freewrt.org"] { fileinto "Mailinglists.FreeWRT"; stop; } elseif header :contains ["to", "Cc", "Bcc"] ["getmail at discworld.dnsalias.org"] { fileinto "Mailinglists.getmail"; stop; } ---------------------------------------------------------------------------------------------------- This is the e...
2010 Aug 28
0
LUA script to emulate PXE boot on USB
..." .. serial) print(" UUID : " .. uuid) -- Search for config file (in this order) : -- UUID, SerialNumber, ProductName, Manufacturer -- Otherwise : use default if ( exists(path_uuid .. "/" .. uuid) ) then config = path_uuid .. "/" .. uuid elseif ( exists(path_serial .. "/" .. serial) ) then config = path_serial .. "/" .. serial elseif ( exists(path_product .. "/" .. product) ) then config = path_product .. "/" .. product elseif ( exists(path_manufacturer .. "/" .. manufacturer)...
2005 Jun 09
1
PHPAGI Swift Escape Digits
I am trying to use swift in PHP/AGI. function swift($text, $escape_digits='', $frequency=8000, $voice=NULL, $fnameIn='') During swift speaking some text I want the caller to be able to press 1, 2 or 3 to do thing 1, thing 2 or thing 3. How are these digit defines and then caught? Thanks, Michael
2018 Feb 09
0
[Openmp-dev] [cfe-dev] [Release-testers] [6.0.0 Release] Release Candidate 2 tagged
...s to be governed by LIBCXX_CXX_ABI_LIBNAME, but it isn't being set to the correct value of "cxxrt" on FreeBSD. I am going to try the following diff: > > --- llvm.src/projects/libcxx/CMakeLists.txt > +++ llvm.src/projects/libcxx/CMakeLists.txt > @@ -135,6 +135,8 @@ > elseif (APPLE) > set(LIBCXX_CXX_ABI_LIBNAME "libcxxabi") > set(LIBCXX_CXX_ABI_SYSTEM 1) > + elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD") > + set(LIBCXX_CXX_ABI_LIBNAME "libcxxrt") > else() > set(LIBCXX_CXX_ABI_LIBNAME "default") &...
2012 Apr 11
0
F5 SLB iRule - POP3 TLS Offload & Add Realm
...NT DATA: [TCP::payload]" } set lcpayload [string tolower [TCP::payload]] if { $lcpayload starts_with "stls" } { TCP::respond "+OK Begin TLS negotiation\r\n" TCP::payload replace 0 [TCP::payload length] "" TCP::release SSL::enable return } elseif { $lcpayload starts_with "user" } { scan [TCP::payload] {%s%s} command user set pos [string first $user [TCP::payload] 0] TCP::payload replace $pos [string length $user] "$user@$realm" if { $debug } { log local0. [TCP::payload] } } TCP::release if { $logged...