Skip to content

Commit

Permalink
make it a little more efficient
Browse files Browse the repository at this point in the history
  • Loading branch information
randrescastaneda committed Jul 8, 2020
1 parent f98b817 commit 75d3682
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions povcalnet.ado
Original file line number Diff line number Diff line change
Expand Up @@ -291,18 +291,18 @@ qui {
}

// defined popshare and defined povline = error
if ("`popshare'" != "" & "`povline'" != "") {
else if ("`popshare'" != "" & "`povline'" != "") {
noi disp as err "povline and popshare cannot be used at the same time"
error
}

// blank popshare and defined povline
if ("`popshare'" == "" & "`povline'" != "") {
else if ("`popshare'" == "" & "`povline'" != "") {
local pcall = "povline"
}

// defined popshare and blank povline
if ("`popshare'" != "" & "`povline'" == "") {
else {
local pcall = "popshare"
}

Expand Down

0 comments on commit 75d3682

Please sign in to comment.